/*
Theme Name: Dörzapf
Theme URI: https://doerzapf.ch
Author: Oliver Dörzapf
Author URI: https://doerzapf.ch
Description: Persönliches Portfolio-Theme für Dr. med. Oliver Dörzapf — Arzt, Fotograf, Weltreisender.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doerzapf
Tags: one-page, portfolio, photography
*/

/* ── Reset & Variablen ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #398696;
  --teal-dark:   #2a6672;
  --teal-light:  #5aabbb;
  --teal-pale:   #e8f4f6;
  --clr-bg:      #fafafa;
  --clr-white:   #ffffff;
  --clr-dark:    #1a2a2e;
  --clr-text:    #3a4a4e;
  --clr-muted:   #7a9198;
  --clr-border:  #d8e8ec;
  --font-serif:  'Georgia', 'Times New Roman', serif;
  --font-sans:   'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h:       74px;
  --radius:      3px;
  --shadow:      0 4px 24px rgba(57,134,150,0.10);
  --shadow-lg:   0 12px 48px rgba(57,134,150,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
img { display: block; max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ── Navigation ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}

#site-header.elevated { box-shadow: var(--shadow); }

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--clr-dark);
  font-weight: normal;
}

.nav-name strong { color: var(--teal); }

.nav-tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

#primary-navigation ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-navigation ul a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

#primary-navigation ul a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  width: 24px; height: 2px;
  background: var(--clr-dark);
  transition: transform 0.3s, opacity 0.3s;
  display: block;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--clr-white) 60%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(57,134,150,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text {
  padding: 80px 64px 80px 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--teal);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: normal;
  line-height: 1.15;
  color: var(--clr-dark);
  margin-bottom: 12px;
}

.hero-title em {
  font-style: normal;
  color: var(--teal);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 16px;
  color: var(--clr-text);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 16px rgba(57,134,150,0.3);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(57,134,150,0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal-pale);
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 80px 64px 80px 32px;
  display: flex;
  justify-content: center;
}

.hero-portrait-wrap {
  position: relative;
  width: 340px;
}

.hero-portrait {
  width: 340px;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent 50%, rgba(57,134,150,0.15) 100%),
              radial-gradient(ellipse at 45% 35%, #c8b8a0 0%, #9a8060 30%, #4a3020 70%, #1a1008 100%);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--teal);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 12px;
  text-align: center;
  min-width: 130px;
}

.portrait-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.portrait-badge span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.portrait-accent {
  position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  border: 2px solid var(--teal-light);
  border-radius: var(--radius);
  opacity: 0.4;
}

/* Roles badges */
.hero-roles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--teal-pale);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--teal-dark);
  font-weight: 500;
}

.role-tag svg { width: 13px; height: 13px; }

/* ── Section Base ── */
.section {
  padding: 100px 64px;
}

.section-alt { background: var(--clr-white); }
.section-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
}

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 64px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--teal);
}

.section-teal .section-label {
  color: rgba(255,255,255,0.7);
}

.section-teal .section-label::before {
  background: rgba(255,255,255,0.5);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: normal;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-teal .section-title { color: white; }

.section-intro {
  font-size: 17px;
  color: var(--clr-muted);
  max-width: 600px;
  line-height: 1.8;
}

.section-teal .section-intro { color: rgba(255,255,255,0.8); }

/* ── Über mich ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--clr-text);
  line-height: 1.85;
}

.about-highlight {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  background: var(--teal-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--teal-dark);
  font-style: italic;
  margin: 28px 0;
  line-height: 1.6;
}

.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-light));
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--clr-white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-year {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--clr-muted);
}

/* ── Fotografie-Sektion ── */
#fotografie {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.9);
}
#fotografie .section-label { color: var(--teal-light); }
#fotografie .section-label::before { background: var(--teal-light); }
#fotografie h2 { color: #fff; }
#fotografie .section-intro { color: rgba(255,255,255,0.7); }

/* ── Galerie-Katalog-Grid (Startseite) ── */
.galerie-katalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

/* ── Fotografie (legacy) ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin-top: 64px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  aspect-ratio: 1;
}

.photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item:hover .photo-bg { transform: scale(1.07); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,42,46,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.4s;
}

.photo-item:hover .photo-overlay { background: rgba(26,42,46,0.6); }

.photo-info {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

.photo-item:hover .photo-info { transform: translateY(0); opacity: 1; }

.photo-info-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: white;
  margin-bottom: 3px;
}

.photo-info-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,18,20,0.95);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.lightbox.open { display: flex; }

.lb-inner {
  position: relative;
  max-width: 85vw;
}

.lb-photo {
  width: 65vw;
  height: 75vh;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.lb-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: -44px; right: 0;
  font-size: 32px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}

.lb-close:hover { color: white; }

.lb-caption {
  padding: 16px 0 0;
  color: white;
  font-family: var(--font-serif);
  font-size: 17px;
}

.lb-caption small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(90,171,187,0.9);
  margin-top: 5px;
}

/* ── Reisen ── */
#reisen { background: var(--clr-bg); }

.reisen-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.reisen-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Animierter SVG-Globus ── */
.globus-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.globus-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter:
    drop-shadow(0 0 50px rgba(57,134,150,0.50))
    drop-shadow(0 20px 50px rgba(6,15,20,0.65));
  animation: globusFloat 7s ease-in-out infinite;
}

@keyframes globusFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.globe-spin {
  animation: globeSpin 30s linear infinite;
  transform-origin: 250px 250px;
}

@keyframes globeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.globe-pts circle {
  animation: dotPulse 3s ease-in-out infinite;
}
.globe-pts circle:nth-child(2) { animation-delay: 0.6s; }
.globe-pts circle:nth-child(3) { animation-delay: 1.2s; }
.globe-pts circle:nth-child(4) { animation-delay: 1.8s; }
.globe-pts circle:nth-child(5) { animation-delay: 2.4s; }
.globe-pts circle:nth-child(6) { animation-delay: 3.0s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1;   }
}

.reisen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.rstat {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--teal);
  padding: 20px;
  text-align: center;
  border-radius: var(--radius);
}

.rstat-val {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}

.rstat-lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ── Reiseziel-Kacheln ── */
.kontinent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.kontinent-kachel {
  position: relative;
  aspect-ratio: 3 / 4;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.35s;
  text-align: left;
}

.kontinent-kachel:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(9,24,32,0.45);
}

.kachel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
}

.kontinent-kachel:hover .kachel-bg { transform: scale(1.08); }

.kk-europa      { background: linear-gradient(160deg, #6a9a7a 0%, #2a6a4a 45%, #0a2a1e 100%); }
.kk-afrika      { background: linear-gradient(155deg, #d4a050 0%, #9a5820 45%, #3c1808 100%); }
.kk-amerika     { background: linear-gradient(150deg, #7080b8 0%, #384898 45%, #101838 100%); }
.kk-asien       { background: linear-gradient(165deg, #c05840 0%, #882030 45%, #300010 100%); }
.kk-pole        { background: linear-gradient(145deg, #90c8d8 0%, #4898b8 45%, #103050 100%); }
.kk-namibia     { background: linear-gradient(155deg, #e8a040 0%, #b06010 45%, #4a1800 100%); }
.kk-ecuador     { background: linear-gradient(150deg, #5a9a50 0%, #2a6820 45%, #0a2808 100%); }
.kk-himalaja    { background: linear-gradient(145deg, #a0b8d8 0%, #5878a8 45%, #182848 100%); }
.kk-sylt        { background: linear-gradient(160deg, #8090a8 0%, #405870 45%, #102030 100%); }
.kk-suedafrika  { background: linear-gradient(155deg, #c8a060 0%, #907030 45%, #382808 100%); }
.kk-spitzbergen { background: linear-gradient(145deg, #c8e0f0 0%, #7098c0 45%, #1c3850 100%); }
.kk-patagonien  { background: linear-gradient(150deg, #60a8b8 0%, #286880 45%, #082838 100%); }
.kk-antarktis   { background: linear-gradient(145deg, #d8ecf8 0%, #88b8d8 45%, #1a3850 100%); }

.kachel-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 16px 18px;
  background: linear-gradient(to top, rgba(8,18,24,0.88) 0%, rgba(8,18,24,0) 100%);
  z-index: 1;
}

.kachel-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px;
  transition: color 0.3s;
}

.kontinent-kachel:hover .kachel-label { color: rgba(90,171,187,0.9); }

.kachel-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.4vw, 21px);
  color: #fff;
  line-height: 1.15;
}

.kachel-pfeil {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(57,134,150,0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7) translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.kontinent-kachel:hover .kachel-pfeil {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.kachel-pfeil svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2; }

/* ── Lebenslauf ── */
#lebenslauf { background: var(--clr-white); }

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.cv-section-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-pale);
}

.cv-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.cv-year {
  font-size: 12px;
  color: var(--clr-muted);
  white-space: nowrap;
  min-width: 90px;
  padding-top: 2px;
}

.cv-content-title {
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 4px;
  font-size: 15px;
}

.cv-content-desc {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.skill-tag {
  padding: 10px 16px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Zitat Banner ── */
.quote-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 80px 64px;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  color: white;
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.quote-banner blockquote::before { content: '\201C'; }
.quote-banner blockquote::after  { content: '\201D'; }

.quote-author {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Kontakt ── */
#kontakt { background: var(--clr-bg); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

.kontakt-info p {
  color: var(--clr-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.info-icon {
  width: 40px; height: 40px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg { width: 18px; height: 18px; stroke: var(--teal); fill: none; stroke-width: 1.5; }

.info-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.info-value {
  color: var(--clr-text);
  font-size: 15px;
}

/* Form */
.form-grid { display: grid; gap: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-white);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(57,134,150,0.1);
}

.form-group textarea { height: 130px; resize: vertical; }

.form-notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.form-notice.success {
  background: var(--teal-pale);
  color: var(--teal-dark);
  border: 1px solid var(--clr-border);
}

.form-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Footer ── */
#colophon {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .nav-name { color: white; font-size: 18px; }
.footer-brand .nav-tagline { color: rgba(255,255,255,0.4); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal-light); }

.footer-copy { font-size: 13px; }

/* ── Reveal Animation ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

/* JS setzt body.js-ready → dann erst unsichtbar, bis .in gesetzt wird */
body.js-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}

.reveal.in { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════
   KONTINENT-NAVIGATION BUTTONS + DROPDOWN
   ══════════════════════════════════════════════════ */

/* Nav-Item als Positionierungs-Anker für Dropdown */
#primary-navigation .nav-item { position: relative; }

/* Pfeil-Icon im Kontinent-Button */
#primary-navigation .nav-arrow {
  font-size: 0.65em;
  margin-left: 3px;
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
}
#primary-navigation .nav-item.open .nav-arrow { transform: rotate(180deg); }

/* Dropdown-Liste */
#primary-navigation .nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 160px;
  background: var(--clr-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#primary-navigation .nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Kleines Dreieck oben am Dropdown */
#primary-navigation .nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--clr-dark);
}

/* Länder-Buttons im Dropdown */
#primary-navigation .nav-land-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: rgba(255,255,255,0.80);
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
#primary-navigation .nav-land-btn:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

/* Mobile: Dropdown als eingerückte Liste */
@media (max-width: 960px) {
  #primary-navigation .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    display: none;
  }
  #primary-navigation .nav-dropdown::before { display: none; }
  #primary-navigation .nav-item.open .nav-dropdown { display: block; }
  #primary-navigation .nav-land-btn { color: var(--clr-text); font-size: 11px; padding: 7px 12px; }
}

#primary-navigation .nav-kontinent-btn {
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

#primary-navigation .nav-kontinent-btn:hover,
#primary-navigation .nav-kontinent-btn.aktiv {
  color: var(--teal);
  border-color: var(--teal);
}

/* ══════════════════════════════════════════════════
   GALERIE OVERLAY
   ══════════════════════════════════════════════════ */
.galerie-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow: hidden;
}

.galerie-overlay[hidden] {
  display: none !important;
}

.galerie-overlay.sichtbar {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.galerie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.galerie-kontinent-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: block;
  margin-bottom: 6px;
}

.galerie-titel-text {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: normal;
  color: white;
  margin: 0;
}

.galerie-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.galerie-close:hover {
  background: var(--teal);
  color: white;
}

/* Foto-Grid */
.galerie-grid {
  flex: 1;
  overflow-y: auto;
  padding: 36px 52px 52px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  align-content: start;
}

.galerie-grid::-webkit-scrollbar { width: 4px; }
.galerie-grid::-webkit-scrollbar-track { background: transparent; }
.galerie-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Einzelnes Foto */
.galerie-foto {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
}

.galerie-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.galerie-foto-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.galerie-foto:hover img,
.galerie-foto:hover .galerie-foto-fallback { transform: scale(1.05); }

.galerie-foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,42,46,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.galerie-foto:hover .galerie-foto-overlay { opacity: 1; }

.galerie-foto-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: white;
  margin-bottom: 4px;
}

.galerie-foto-ort {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(90,171,187,0.9);
}

/* Leer-Zustand */
.galerie-leer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,0.3);
}

.galerie-leer svg {
  width: 48px; height: 48px;
  stroke: rgba(255,255,255,0.15);
  fill: none;
  margin: 0 auto 20px;
  display: block;
}

.galerie-leer p {
  font-size: 15px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.4);
}

.galerie-leer small {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ── Katalog-Karten (Länder-Auswahl) ── */
.katalog-karte {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}
.katalog-karte:hover, .katalog-karte:focus {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  outline: none;
}
.katalog-cover {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.katalog-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.katalog-karte:hover .katalog-cover img { transform: scale(1.05); }
.katalog-cover-leer {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.katalog-info {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.katalog-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.katalog-anzahl {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ── Zurück-Button im Overlay ── */
.galerie-zurueck {
  grid-column: 1 / -1;
  background: none;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.70);
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 8px;
}
.galerie-zurueck:hover {
  border-color: rgba(255,255,255,0.50);
  color: #fff;
}

/* ── Galerie Suchen */
.galerie-suche {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.galerie-suche-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: white;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
}

.galerie-suche-input::focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 2px rgba(57,134,150,0.25);
}

.galerie-suche-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.galerie-anzahl-badge {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ── Responsive / Mobile (───────────────────────────**/
@media (max-width: 960px) {
  .site-header {
    padding: 16px 24px;
  }
  /* Hamburger-Menü */
  #primary-navigation ul:not(.nav-dropdown) { display: none; }
  #primary-navigation ul.open:not(.nav-dropdown) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--clr-dark);
    padding: 32px 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    z-index: 100;
    gap: 24px;
  }

lerie-Lightbox ── */
.galerie-lightbox {
  position: absolute;
  inset: 0;
  background: rgba(5,10,12,0.97);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.galerie-lightbox[hidden] { display: none !important; }

.galerie-lb-img-wrap {
  position: relative;
  max-width: 88vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galerie-lb-img-wrap img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}

.galerie-lb-fallback {
  width: 70vw;
  height: 70vh;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.galerie-lb-fallback:empty { display: none; }

.galerie-lb-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 36px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.galerie-lb-close:hover { color: white; }

.galerie-lb-prev,
.galerie-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 16px;
  transition: color 0.2s;
}

.galerie-lb-prev { left: 16px; }
.galerie-lb-next { right: 16px; }
.galerie-lb-prev:hover,
.galerie-lb-next:hover { color: white; }

.galerie-lb-caption {
  margin-top: 20px;
  text-align: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 18px;
}

.galerie-lb-caption small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 6px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .galerie-header { padding: 20px 24px; }
  .galerie-grid   { padding: 24px; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .galerie-lb-prev { left: 4px; }
  .galerie-lb-next { right: 4px; }
}

/* ── WordPress Core ── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--clr-muted); text-align: center; margin-top: 6px; }
.alignnone { margin: 0 0 16px 0; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignleft { float: left; margin: 0 16px 16px 0; }
.alignright { float: right; margin: 0 0 16px 16px; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  #site-header { padding: 0 24px; }
  #primary-navigation ul:not(.nav-dropdown) { display: none; }
  #primary-navigation ul.open:not(.nav-dropdown) {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-white);
    border-top: 1px solid var(--clr-border);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }
  .nav-burger { display: flex; }

  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .hero-visual { display: none; }
  .hero-text { padding: 40px 24px 60px; }

  .section { padding: 70px 24px; }
  .about-grid,
  .reisen-intro-grid,
  .cv-grid,
  .kontakt-grid { grid-template-columns: 1fr; gap: 48px; }
  .kontinent-grid { grid-template-columns: 1fr 1fr; }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .photo-item:nth-child(n) { grid-column: auto; grid-row: auto; }

  #colophon { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .quote-banner { padding: 60px 24px; }
}

@media (max-width: 600px) {
  .kontinent-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .reisen-stats { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
