/* ==========================================================================
   DGHP – Deutsche Gesellschaft für Hirnstimulation in der Psychiatrie e.V.
   Stylesheet für den bestehenden HTML-Entwurf (github.com/sstaudi/DGHP-Claude)
   Fertiggestellt: die HTML-Struktur/Klassen wurden unverändert übernommen,
   dieses CSS füllt den zuvor fehlenden Teil.
   ========================================================================== */

:root {
  --primary: #a4a481;
  --primary-dark: #5f6063;
  --accent: #e74215;
  --accent-light: #fce2d8;
  --text: #23303b;
  --text-light: #6b7885;
  --border: #e1e5e9;
  --radius: 10px;
  --bg: #f6f7f9;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(18,42,64,0.08), 0 1px 2px rgba(18,42,64,0.06);
  --shadow-md: 0 10px 30px -12px rgba(18,42,64,0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4 { color: var(--primary-dark); line-height: 1.25; font-weight: 700; }
h2 { font-size: 1.6rem; margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 0.5em; }
h4 { font-size: 1rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-nav {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 12px 20px; z-index: 300; border-radius: 0 0 8px 0;
}
.skip-nav:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ==========================================================================
   HEADER + NAVIGATION
   ========================================================================== */

header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }

.header-top { border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center;
}
.logo-img img { height: 52px; width: auto; display: block; }
@media (max-width: 560px) { .logo-img img { height: 36px; } }

nav { background: var(--primary); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; display: flex; align-items: center; }

.nav-toggle {
  display: none; background: none; border: none; color: #fff; font-size: 1.4rem;
  padding: 12px 6px; cursor: pointer; line-height: 1;
}

nav > .nav-inner > ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
nav > .nav-inner > ul > li { position: relative; }
nav > .nav-inner > ul > li > a {
  display: block; padding: 14px 16px; color: #fff; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
nav > .nav-inner > ul > li > a:hover,
nav > .nav-inner > ul > li > a.active {
  background: var(--primary-dark); text-decoration: none;
}

/* Dropdown submenus */
nav ul ul {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 230px; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md); display: none; flex-direction: column; z-index: 50;
}
nav > .nav-inner > ul > li:hover > ul,
nav > .nav-inner > ul > li:focus-within > ul {
  display: flex;
}
nav ul ul li { margin: 0; }
nav ul ul a {
  display: block; padding: 10px 14px; color: var(--text); font-size: 0.9rem;
  border-radius: 6px; white-space: nowrap;
}
nav ul ul a:hover { background: var(--accent-light); color: var(--primary-dark); text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-inner { flex-wrap: wrap; }
  nav > .nav-inner > ul {
    display: none; flex-direction: column; width: 100%; padding-bottom: 10px;
  }
  nav.is-open > .nav-inner > ul,
  .nav-inner.is-open > ul { display: flex; }
  nav > .nav-inner > ul > li { width: 100%; }
  nav ul ul {
    position: static; box-shadow: none; display: none; width: 100%;
    background: var(--primary-dark); border-radius: 0; padding: 0 0 6px 14px;
  }
  nav ul ul a { color: #dfe7ee; }
  nav ul ul a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  nav > .nav-inner > ul > li.is-expanded > ul { display: flex; }
  nav > .nav-inner > ul > li:hover > ul,
  nav > .nav-inner > ul > li:focus-within > ul { display: none; }
  nav > .nav-inner > ul > li.is-expanded:hover > ul { display: flex; }
}

/* ==========================================================================
   HERO (Startseite)
   ========================================================================== */

.hero-mri {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
}
.hero-mri-inner {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.hero-mri-text h2 { color: #fff; font-size: 2.1rem; margin-bottom: 0.5em; }
.hero-mri-text p { color: #d7e2ea; font-size: 1.08rem; max-width: 46ch; }
.hero-mri-img img {
  border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto;
  border: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 800px) {
  .hero-mri-inner { grid-template-columns: 1fr; padding: 36px 20px; }
  .hero-mri-img { order: -1; }
}

/* ==========================================================================
   WILLKOMMEN (Startseite)
   ========================================================================== */

.welcome-section { background: var(--white); border-bottom: 1px solid var(--border); }
.welcome-section-inner { max-width: 880px; margin: 0 auto; padding: 44px 24px; }
.welcome-section h2 {
  color: var(--primary); font-size: 1.4rem; margin-bottom: 0.7em;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent-light);
}
.welcome-section p { font-size: 0.98rem; line-height: 1.75; color: var(--text); margin-bottom: 1em; }
.welcome-section p:last-child { margin-bottom: 0; font-style: italic; color: var(--text-light); }

/* ==========================================================================
   VERFAHREN (Methoden-Grid)
   ========================================================================== */

.methoden-grid {
  max-width: 1180px; margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.methode-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; box-shadow: var(--shadow);
}
.methode-card .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.methode-card h3 { font-size: 1rem; margin: 0 0 4px; }
.methode-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
@media (max-width: 900px) { .methoden-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .methoden-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   HAUPTINHALT + SIDEBAR (Startseite)
   ========================================================================== */

.main-grid {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px 56px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start;
}
@media (max-width: 860px) { .main-grid { grid-template-columns: 1fr; } }

.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.news-date { font-size: 0.8rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.news-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.news-item p { margin: 0 0 10px; color: var(--text); }
.read-more { font-weight: 600; font-size: 0.9rem; }

.sidebar { display: flex; flex-direction: column; gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 10px; font-size: 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--accent-light);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c0430f; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   INNENSEITEN: page-hero / page-content
   ========================================================================== */

.page-hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 46px 24px;
}
.page-hero h2 { color: #fff; margin: 0 0 6px; font-size: 1.9rem; }
.page-hero p { color: #d7e2ea; margin: 0; font-size: 1.05rem; }

.page-content { max-width: 1180px; margin: 0 auto; padding: 40px 24px 64px; }

/* Alert / info boxes */
.alert {
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; font-size: 0.93rem;
}
.alert-info { background: var(--accent-light); color: #8a3510; border: 1px solid #f0c2a5; }

/* ==========================================================================
   VORSTAND
   ========================================================================== */

.vorstand-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px;
}
@media (max-width: 900px) { .vorstand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vorstand-grid { grid-template-columns: 1fr; } }
.vorstand-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start;
}
.vorstand-avatar {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.vorstand-info .role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.vorstand-info .name { font-weight: 700; color: var(--primary-dark); margin-bottom: 2px; }
.vorstand-info .institution { font-size: 0.85rem; color: var(--text-light); }

/* ==========================================================================
   KLINIKEN
   ========================================================================== */

.klinik-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px;
}
@media (max-width: 900px) { .klinik-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .klinik-grid { grid-template-columns: 1fr; } }
.klinik-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--accent);
}
.klinik-city { font-weight: 700; color: var(--primary); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.klinik-card h4 { margin: 0 0 4px; font-size: 0.98rem; }
.klinik-card p { margin: 0; font-size: 0.86rem; color: var(--text-light); }

/* ==========================================================================
   DATA TABLES (Mitgliedschaft, Tagungen)
   ========================================================================== */

.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.93rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--primary); color: #fff; font-weight: 600; }
.data-table tr:nth-child(even) td { background: var(--bg); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.table-scroll .data-table { margin-top: 0; font-size: 0.85rem; white-space: nowrap; }
.table-scroll .data-table td, .table-scroll .data-table th { white-space: normal; min-width: 140px; }
.table-scroll .data-table td:first-child, .table-scroll .data-table th:first-child { min-width: 110px; }
.klinik-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; }
.klinik-badge.zertifiziert { background: var(--accent-light); color: #8a3510; }
.klinik-badge.nicht { background: var(--bg); color: var(--text-light); border: 1px solid var(--border); }

/* ==========================================================================
   KONTAKT
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--primary-dark); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.96rem; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,66,21,0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer { background: var(--primary-dark); color: #c9d4dd; margin-top: 40px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 44px 24px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
footer p { color: #aebccb; font-size: 0.9rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #c9d4dd; font-size: 0.9rem; }
footer a:hover { color: #fff; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: #8ea0b0;
}
.footer-bottom a { color: #8ea0b0; }

/* ==========================================================================
   STARTSEITE VARIANTE 2 (Vorlagen-Layout)
   ========================================================================== */

.hero2 {
  background: radial-gradient(1100px 500px at 15% -10%, #b7b795 0%, var(--primary) 45%, var(--primary-dark) 100%);
  color: #fff; padding: 64px 24px 56px; position: relative; overflow: hidden;
}
.hero2-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.hero2-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 0.4em 0.9em; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 18px;
}
.hero2 h1 { color: #fff; max-width: 20ch; margin: 0 0 0.5em; font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem); line-height: 1.2; }
.hero2-lead { font-size: 1.1rem; color: #f1f1e9; max-width: 62ch; margin: 0 0 24px; line-height: 1.65; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2-actions .btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.8em 1.4em; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 0.98rem; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.hero2-actions .btn-ghost:hover { background: rgba(255,255,255,0.14); }

.callout2 {
  display: flex; gap: 16px; align-items: flex-start; background: var(--accent-light);
  border: 1px solid #f0c2a5; border-radius: var(--radius); padding: 20px 22px; text-decoration: none;
  max-width: 1180px; margin: -26px auto 0; position: relative; box-shadow: var(--shadow-md);
}
.callout2:hover { text-decoration: none; }
.callout2-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.callout2 h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--primary-dark); }
.callout2 p { margin: 0; color: var(--text); font-size: 0.95rem; }

.stat-grid {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.stat-card .stat-number { font-size: 1.9rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.stat-card p { margin: 0; font-size: 0.9rem; color: var(--text-light); }

.section-head2 { max-width: 62ch; margin: 0 auto 32px; padding: 0 24px; text-align: left; }
.section-head2.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-kicker2 {
  color: var(--accent); text-transform: uppercase; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; margin-bottom: 0.6em; display: block;
}

.procedure-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 24px 56px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 900px) { .procedure-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .procedure-grid { grid-template-columns: repeat(2, 1fr); } }
.procedure-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; box-shadow: var(--shadow);
}
.procedure-card .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.procedure-card h3 { font-size: 1rem; margin: 0 0 4px; }
.procedure-card p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

.overview-grid {
  max-width: 1180px; margin: 0 auto; padding: 0 24px 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .overview-grid { grid-template-columns: 1fr; } }
.overview-card {
  display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: box-shadow 0.15s, transform 0.15s;
}
.overview-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.overview-card h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--primary-dark); }
.overview-card p { margin: 0; font-size: 0.9rem; color: var(--text-light); }

.membership-banner-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }
.membership-banner {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--primary-dark);
  border-radius: var(--radius); padding: 28px 30px; color: #fff;
}
.membership-banner-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
}
.membership-banner h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.membership-banner p { color: #e3e3da; margin: 0; font-size: 0.95rem; }
.membership-banner-text { flex: 1 1 320px; }
