/* ===========================
   Base / Theme
   =========================== */
:root {
  --bg: #121015;
  --text: #f4efe9;
  --muted: #c6bfb6;
  --card: #1b181f;
  --border: #2e2730;
  --accent: #ff7043;
  --accent-2: #f8b46e;
  --ring: rgba(255, 112, 67, .35);

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);

  --container-pad: 20px;
  --logo-size: 84px;
  --logo-dip: 6px;

  --nav-line-right-gap: 160px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --text: #211b17;
    --muted: #6b5c55;
    --card: #fdf7f2;
    --border: #dfa79a;
    --accent: #f16832;
    --accent-2: #f7a74f;
    --ring: rgba(241, 104, 50, .35);
    --shadow: 0 10px 30px rgba(40, 30, 10, .1);
  }
}

@media (max-width: 900px) {
  :root { --nav-line-right-gap: 120px; }
}
@media (max-width: 600px) {
  :root { --nav-line-right-gap: 96px; }
}

/* ===========================
   Reset / Base
   =========================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===========================
   Header & Navigation
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: none;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  overflow: visible;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}


.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 18px;
  isolation: isolate;
  overflow: visible;
}

/* Untere Linie (nach Logo beginnend) */
.nav::after {
  content: "";
  position: absolute;
  left: calc(var(--container-pad) + var(--logo-size) + 14px);
  right: calc(var(--container-pad));
  bottom: 12px;
  height: 1px;
  background: var(--border);
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}

/* Brand/Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  overflow: visible;
}

.brand-logo {
  width: var(--logo-size);
  height: var(--logo-size);
  display: block;
  border-radius: 3px;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
  transform: translateY(var(--logo-dip)) scale(1.15);
  transition: transform .35s ease, opacity .3s ease;
}
.brand-logo:hover {
  transform: translateY(var(--logo-dip)) scale(1.2);
  opacity: .9;
}

/* Links / Buttons im Header */
.links {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-left: 8px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 0px solid var(--border);
  background: var(--border);
  transition: transform .06s ease, box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: color-mix(in oklab, var(--accent) 60%, var(--border));
}
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Header – mobile Button etwas kompakter */
@media (max-width: 600px) {
  header .links .btn {
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
  }
}

/* Logo/Line responsive Feintuning */
@media (max-width: 900px) {
  :root { --logo-size: 64px; --logo-dip: 4px; }
  .nav { padding-bottom: 16px; }
}
@media (max-width: 600px) {
  :root { --logo-size: 56px; --logo-dip: 3px; }
  .nav::after {
    left: calc(var(--container-pad) + var(--logo-size) + 10px);
  }
}

/* ===========================
   Hero
   =========================== */
.hero-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 96px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.12;
  margin: 0;
}

.hero p { margin: 6px 0 16px; color: var(--muted); }
.hero-content { max-width: 640px; }

.hero-image { display: flex; justify-content: center; }

.hero-portrait {
  width: 180px;
  height: 180px;
  border-radius: 70%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

/* Hero responsive */
@media (max-width: 899px) {
  .hero { flex-direction: column-reverse; }
  .hero-portrait {
    width: 350px;
    height: 350px;
    margin-bottom: 24px;
  }
}
@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 60px;
  }
  .hero-content { flex: 1; max-width: 600px; }
  .hero-image { flex: 0 0 auto; }
  .hero-portrait { width: 300px; height: 300px; margin-right: 0; }
}
@media (min-width: 1300px) {
  .hero-portrait { width: 360px; height: 360px; }
}

/* (Legacy) Hero-Background-Slideshow – zur evtl. späteren Nutzung */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.hero-bg-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(.55) saturate(115%);
  transition: opacity 2s ease-in-out;
}

/* ===========================
   Sections / Grid
   =========================== */
section { padding: 56px 0; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .col-4, .col-6, .col-8 { grid-column: span 12; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition:
    transform .6s cubic-bezier(.2, .8, .2, 1),
    opacity .6s ease,
    box-shadow .3s ease;
  position: relative;
}
.card:hover { transform: translateY(0) scale(1.01); }
.reveal { opacity: 1; transform: translateY(0) scale(1); }

/* ===== Card corner logos ===== */
.card-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform .18s ease, opacity .18s ease;
  pointer-events: none;
}
.card:hover .card-logo { transform: scale(1.04); opacity: 1; }
@media (max-width: 420px) {
  .card-logo { width: 38px; height: 38px; }
}
/* Über mich: Text + rundes Bild (flex, Bild rechts) */
.about-grid {
  display: flex;
  align-items: center;  /* vertikal mittig */
  gap: 24px;
}

.about-text {
  order: 1;            /* Text links */
  flex: 1 1 auto;
}

.about-photo {
  order: 2;            /* Bild rechts */
  flex: 0 0 220px;
  margin: 0;
  align-self: center;
}

.about-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
}

/* Desktop: a bit more space between text and image */
@media (min-width: 721px) {
  .about-grid {
    gap: 32px; /* was 24px */
  }
}


/* Smartphones: Bild unter dem Text */
/* Smartphones: stack; image UNDER the text and centered horizontally */
@media (max-width: 720px) {
  .about-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .about-text { order: 1; }

  /* Center the figure horizontally */
  .about-photo {
    order: 2;
    align-self: center;     /* <-- centers the figure in the column */
    margin: 0;              /* ensure no side offset */
  }

  /* Ensure the image itself is centered inside the figure */
  .about-img {
    display: block;
    margin-inline: auto;    /* <-- centers image horizontally */
  }
}



/* Timeline */
.timeline { border-left: 2px solid var(--border); padding-left: 16px; }
.t-item { margin: 14px 0; position: relative; }
.t-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: .4em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);
}

/* ===========================
   Footer
   =========================== */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Footer Links */
.footer-link {
  color: var(--muted);
  text-decoration: none;
  margin-left: 6px;
  border-bottom: 1px dashed transparent;
  transition: color .2s ease, border-color .2s ease;
}
.footer-link:hover,
.footer-link:focus {
  color: var(--text);
  border-bottom-color: currentColor;
  outline: none;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font: inherit;
  margin-top: 4px;
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ===========================
   Impressions – Scrolling Banner
   =========================== */
.impressions-banner {
  position: relative;
  width: 100%;
  height: 200px;
  padding-top: 8px;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  background: var(--bg);
  margin: 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.impressions-banner::-webkit-scrollbar { width: 0; height: 0; }

.impressions-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollImpressions 120s linear infinite;
}
.impressions-banner img {
  width: 188px;
  height: 188px;
  flex-shrink: 0;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 8px;
  filter: brightness(.9) saturate(115%);
  transition: transform .25s ease, filter .25s ease;
  transform-origin: center;
  will-change: transform;
  cursor: zoom-in;
}
.impressions-banner img:hover {
  transform: scale(1.06);
  filter: brightness(.98) saturate(118%);
}

@keyframes scrollImpressions {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .impressions-banner img { width: 184px; height: 184px; }
}

/* ===========================
   Hero – Social Links
   =========================== */
.hero-social {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.insta-link,
.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
}
.insta-link { color: var(--accent); }
.yt-link { color: #ff4d4d; }
.insta-link svg,
.yt-link svg {
  flex-shrink: 0;
  transition: transform .3s ease, color .3s ease;
}
.insta-link:hover {
  color: #e1306c;
  transform: translateY(-1px);
}
.insta-link:hover svg {
  transform: scale(1.1);
  color: #e1306c;
}
.yt-link:hover {
  color: #ff0000;
  transform: translateY(-1px);
}
.yt-link:hover svg {
  transform: scale(1.1);
  color: #ff0000;
}
@media (max-width: 899px) {
  .hero-social { align-items: center; }
}

/* ===========================
   Legal / Impressum (schlicht)
   =========================== */
.legal-wrap {
  max-width: 820px;
  padding: 36px 0 56px;
  padding-inline-start: 14px; /* ~14px left indent */
}
.legal-wrap p {
  margin: 10 0 14px;
  color: var(--muted);
}
.legal-address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}
.legal-wrap a {
  color: var(--text);
  border-bottom: 1px dashed
    color-mix(in oklab, var(--text) 60%, transparent);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.legal-wrap a:hover {
  opacity: .9;
  border-bottom-color: currentColor;
}
.legal-sep {
  height: 1px;
  border: 0;
  background: color-mix(in oklab, var(--border) 80%, transparent);
  margin: 26px 0;
  opacity: .8;
}
.legal-wrap h1,
.legal-wrap h2 {
  font-size: inherit;
  font-weight: 700;
  line-height: 1.5;
  margin: 18px 0 8px;
}
.legal-wrap h1:first-child { margin-top: 0; }


/* ===== Fix: remove unwanted left bar on hover over text ===== */
a:hover, p:hover, span:hover, li:hover,
h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
  border-left: none !important;
  outline: none;
  box-shadow: none;
}
a::before, p::before, span::before, li::before,
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
  content: none !important;
  border-left: none !important;
  box-shadow: none !important;
}
a { border-left: none !important; }
a {
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-decoration-style: solid;
}

/* ===========================
   Hide header after threshold
   =========================== */
header.nav-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

/* ===========================
   Image Lightbox (in-page)
   =========================== */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--bg) 40%, black 50%);
  backdrop-filter: blur(2px) saturate(120%);
  z-index: 2000;
}

.img-modal.is-open,
.img-modal[aria-hidden="false"] {
  display: flex;
}

.img-modal__backdrop {
  position: absolute;
  inset: 0;
}

.img-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 96vw;
  max-height: 96vh;
  overflow: visible;
}

.img-modal__img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: zoom-out;
  user-select: none;
}

@media (max-width: 600px) {
  .img-modal__img {
    max-width: 94vw;
    max-height: 82vh;
  }
}


/* Impressionen card links */
.gallery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Galerie page grid */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.galerie-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
@media (max-width: 900px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .galerie-grid { grid-template-columns: 1fr; }
}

/* Softer bold text in content (keeps buttons/header unchanged) */
:where(.card, .hero, .legal-wrap) :where(strong, b) {
  /* Slightly lighten bold vs. body text */
  color: color-mix(in oklab, var(--text) 80%, var(--muted) 12%);
  /* Optional: make "bold" a touch lighter in weight; uncomment if desired */
  /* font-weight: 600; */
}

/* Stilvollere Aufzählungspunkte (dezent, theme-aware) */
:where(.card, .hero) ul {
  margin: 8px 0 0;
  padding-inline-start: 1.2rem;
}

:where(.card, .hero) li {
  margin: 6px 0;
  line-height: 1.6;
}

/* Farbige Marker, leicht größer, passend zu --accent */
:where(.card, .hero) li::marker {
  font-size: 1.1em;
  color: color-mix(in oklab, var(--accent) 70%, var(--text) 30%);
}

/* Optional: etwas weichere Textfarbe in Listen (sehr dezent) */
:where(.card, .hero) li > :where(strong,b) {
  color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%);
}

