/* =============================================
   Asthma Selbsthilfe — style.css
   Кольори з оригінального CSS (maker-pro theme)
   ============================================= */

:root {
  --primary:   #09b7e8;   /* cyan-blue — кнопки, ссилки, акценти */
  --secondary: #12302e;   /* dark green — site title, header text */
  --accent:    #09b7e8;
  --text:      #333333;
  --bg:        #ffffff;
  --bg-light:  #f5f8fa;
  --border:    #e0e0e0;
  --nav-bg:    #ffffff;
  --header-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--secondary); }
p { margin-bottom: 1em; }
ul, ol { margin: 0.75em 0 1em 1.5em; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.75em; color: var(--secondary); font-family: "Martel", Georgia, serif; }
h1 { font-size: 2em; }
h2 { font-size: 1.55em; margin-top: 1.5em; }
h3 { font-size: 1.2em; margin-top: 1.2em; }
strong { font-weight: 700; }

/* =============================================
   LAYOUT WRAP
   ============================================= */
.asthma-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   SITE HEADER
   ============================================= */
.asthma-site-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--primary);
  padding: 18px 0 0;
}

.asthma-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.asthma-site-title {
  font-family: "Martel", Georgia, serif;
  font-size: 1.7em;
  font-weight: 900;
  line-height: 1.1;
}

.asthma-site-title a {
  color: var(--secondary);
  text-decoration: none;
}

.asthma-site-title a:hover { text-decoration: none; color: var(--primary); }

.asthma-site-tagline {
  font-size: 0.8em;
  color: #666;
  margin-top: 2px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.asthma-nav {
  background: var(--primary);
  position: relative;
}

.asthma-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.asthma-nav-list > li {
  position: relative;
}

.asthma-nav-list > li > a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.88em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.asthma-nav-list > li > a:hover,
.asthma-nav-list > li.aktiv > a {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
}

/* Dropdown */
.asthma-nav-list > li:hover .asthma-nav-dropdown {
  display: block;
}

.asthma-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--secondary);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.asthma-nav-dropdown li { list-style: none; }
.asthma-nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  color: #fff;
  font-size: 0.85em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.asthma-nav-dropdown li a:hover {
  background: var(--primary);
  text-decoration: none;
}

/* =============================================
   HOMEPAGE SECTIONS
   ============================================= */

/* front-page-1 — intro portal */
.asthma-portal-intro {
  background: var(--bg-light);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.asthma-portal-intro h3 {
  font-size: 1.5em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.asthma-portal-intro p.intro {
  font-size: 1.05em;
  color: #444;
}

.asthma-portal-intro a { color: var(--primary); font-weight: 600; }

/* front-page-2 — 3 feature boxes */
.behandlung-grid-section {
  padding: 44px 0;
  background: var(--bg);
}

.behandlung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.behandlung-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.behandlung-card:hover { box-shadow: 0 6px 20px rgba(9,183,232,0.15); }

.behandlung-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.behandlung-card-body {
  padding: 18px 20px 20px;
}

.behandlung-card-body h4 {
  font-size: 1.1em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.behandlung-card-body a.mehr-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9em;
}

/* front-page-3 — Was ist Asthma? */
.erkrankung-definition {
  background: var(--secondary);
  color: #fff;
  padding: 44px 0;
}

.erkrankung-definition h3 {
  color: #fff;
  font-size: 1.4em;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.erkrankung-definition p { color: rgba(255,255,255,0.9); }

.erkrankung-definition a.asthma-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
}

.erkrankung-definition a.asthma-btn:hover {
  background: #07a0cd;
  text-decoration: none;
}

/* Diagnose section */
.asthma-diagnose {
  padding: 40px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.asthma-diagnose h3 { color: var(--secondary); }

.asthma-diagnose-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 20px;
}

.asthma-diagnose-links { list-style: none; margin: 0; padding: 0; }
.asthma-diagnose-links li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.asthma-diagnose-links li a { color: var(--primary); font-weight: 600; }

/* =============================================
   INNER PAGE LAYOUT
   ============================================= */
.asthma-inner-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.erkrankung-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a4d49 100%);
  color: #fff;
  padding: 36px 0;
  margin-bottom: 0;
}

.erkrankung-header h1 {
  color: #fff;
  font-size: 1.9em;
  margin-bottom: 6px;
}

.erkrankung-header .header-sub {
  color: rgba(255,255,255,0.8);
  font-size: 0.95em;
}

/* Infobox (medication tables) */
.asthma-infobox {
  background: var(--bg-light);
  border-left: 5px solid var(--primary);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

.asthma-infobox table { width: 100%; border-collapse: collapse; }
.asthma-infobox td { padding: 6px 10px; font-size: 0.92em; border-bottom: 1px solid var(--border); }
.asthma-infobox td:first-child { font-weight: 700; color: var(--secondary); width: 140px; }

/* Section headings on inner pages */
.asthma-inner-wrap h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
}

/* =============================================
   ARTICLE TABLE (DOCX)
   ============================================= */
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; overflow-x: auto; display: block; }
.article-table th { background: var(--secondary); color: #fff; padding: 12px 14px; text-align: left; font-size: 0.9em; }
.article-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-table tr:nth-child(even) td { background: var(--bg-light); }

.faq-section h3 { background: var(--bg-light); padding: 12px 16px; border-left: 4px solid var(--primary); margin: 0 0 2px; color: var(--secondary); }
.faq-section p { padding: 12px 16px; background: #fafcfe; border-left: 4px solid var(--border); margin-bottom: 16px; }

/* =============================================
   404
   ============================================= */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .big-404 { font-size: 120px; font-weight: 900; color: var(--primary); line-height: 1; font-family: "Martel", Georgia, serif; }
.error-404 h2 { font-size: 28px; margin: 16px 0 10px; color: var(--secondary); }
.error-404 p { color: #666; }
.btn-back {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 18px;
  text-decoration: none;
}
.btn-back:hover { background: var(--secondary); text-decoration: none; }

/* =============================================
   FOOTER
   ============================================= */
.asthma-site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  padding: 22px 0;
  font-size: 0.88em;
  text-align: center;
  border-top: 4px solid var(--primary);
}

.asthma-site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.asthma-site-footer a:hover { color: var(--primary); text-decoration: underline; }
.asthma-site-footer .footer-sep { margin: 0 8px; opacity: 0.4; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .behandlung-grid { grid-template-columns: 1fr 1fr; }
  .asthma-diagnose-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .behandlung-grid { grid-template-columns: 1fr; }
  .asthma-site-title { font-size: 1.3em; }
  .erkrankung-header h1 { font-size: 1.5em; }
  .error-404 .big-404 { font-size: 80px; }
  .asthma-nav-list { flex-direction: column; }
  .asthma-nav-dropdown { position: static; display: none; }
  .asthma-nav-list > li:hover .asthma-nav-dropdown { display: block; }
}
