/*
Theme Name: KL Foto
Author: BHB Marketing
Description: Responsives Onepager-Theme für Fotografie.
Version: 1.3.3
Text Domain: kl-foto
*/

:root{
  --kl-primary:#111827;
  --kl-accent:#f59e0b;

  /* Use Open Sans throughout the theme to match the modern, clear
   * typography found in ChatGPT's interface. Open Sans is loaded
   * via Google Fonts in functions.php. */
  --kl-font-body:"Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --kl-font-heading:var(--kl-font-body);

  --kl-bg:#ffffff;
  --kl-surface:#f6f7f9;
  --kl-surface2:rgba(255,255,255,.62);
  --kl-text:#0b1220;
  --kl-muted:#475569;
  --kl-border:rgba(15,23,42,.12);

  /* Default film strip size and border thickness. These may be
   * overridden via the Customizer or inline styles. */
  --film-size:110px;
  --film-border:3px;

  --kl-radius:22px;
  --kl-btn-radius:18px;
  --kl-shadow:0 18px 60px rgba(0,0,0,.10);
  --kl-shadow-soft:0 12px 30px rgba(0,0,0,.06);

  --kl-header-h:76px;
  /* Horizontal padding for the header content. We match the vertical
   * spacing created by the header height and the logo max-height. */
  --kl-header-pad:calc((var(--kl-header-h) - 44px) / 2);
}

@media (prefers-color-scheme: dark){
  :root{
    --kl-bg:#0b0f19;
    --kl-surface:#111827;
    --kl-surface2:rgba(17,24,39,.72);
    --kl-text:#e5e7eb;
    --kl-muted:#a1a1aa;
    --kl-border:rgba(226,232,240,.12);
    --kl-shadow:0 22px 80px rgba(0,0,0,.42);
    --kl-shadow-soft:0 18px 55px rgba(0,0,0,.28);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}

body{
  margin:0;
  font-family:var(--kl-font-body);
  color:var(--kl-text);
  background:var(--kl-bg);
  line-height:1.65;
  min-height:100vh;
}

a{color:inherit}
img{max-width:100%;height:auto;display:block}
button{font:inherit}

.screen-reader-text{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  border:0;
}

.container{
  width:min(1180px, 92%);
  margin-inline:auto;
}

/* Header */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
  height:var(--kl-header-h);
  display:flex;
  align-items:center;
  /* At the top of the page, the header is fully transparent with no blur.
   * Only the navigation items appear. A border is omitted. */
  background:transparent;
  border-bottom:1px solid transparent;
  backdrop-filter:none;
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
@media (prefers-color-scheme: dark){
  .site-header{background:transparent}
}
/* When scrolling, show a semi‑transparent dark background with blur */
.site-header.is-scrolled{
  background:rgba(0,0,0,.28);
  border-bottom-color:var(--kl-border);
  box-shadow:0 12px 40px rgba(0,0,0,.25);
  backdrop-filter:saturate(160%) blur(14px);
}
@media (prefers-color-scheme: dark){
  .site-header.is-scrolled{
    background:rgba(0,0,0,.38);
    box-shadow:0 18px 70px rgba(0,0,0,.42);
    backdrop-filter:saturate(160%) blur(16px);
  }
}

/*
 * Customizations for modern look and feel
 *
 * Use a modern, clear font for the entire theme, refine the
 * header navigation style, and center the hero copy. These
 * overrides are placed at the end of the stylesheet so they
 * override earlier definitions.
 */

:root{
  /* Override the default font stack to Open Sans so the entire
   * theme mirrors the typography of ChatGPT. The system fonts
   * remain as fallbacks. */
  --kl-font-body:'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  --kl-font-heading:var(--kl-font-body);
}

/* Make the header transparent at the top and add blur only when scrolled */
.site-header{
  background:transparent;
  backdrop-filter:none;
}
.site-header.is-scrolled{
  background:rgba(0,0,0,.28);
  backdrop-filter:saturate(160%) blur(14px);
}

/* Photography-style navigation: minimal links with an accent underline */
.nav-list{
  gap:18px;
}
.nav-list a{
  color:#fff;
  background:transparent;
  border-radius:0;
  padding:10px 8px;
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.88;
  position:relative;
  text-shadow:0 10px 30px rgba(0,0,0,.35);
}
.nav-list a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  height:2px;
  background:var(--kl-accent);
  border-radius:99px;
  transform:scaleX(0);
  transform-origin:left;
  opacity:0;
  transition:transform .18s ease, opacity .18s ease;
}
.nav-list a:hover{
  opacity:1;
  background:transparent;
}
.nav-list a:hover::after,
.nav-list a.is-active::after{
  transform:scaleX(1);
  opacity:1;
}
.nav-list a.is-active{
  opacity:1;
}

/* Center the hero text and actions */
.hero-copy{
  text-align:center;
  margin-inline:auto;
  max-width:72ch;
}
.hero-subtitle{
  margin-inline:auto;
}
.hero-actions{
  justify-content:center;
}

/* Filmstreifen under the hero copy */
.hero-filmstrip{
  width:min(1100px, 120%);
  margin-top:32px;
}
.hero-filmstrip .film-strip-container{
  padding:0;
}

/* Optional: stretch the film strip from screen edge to screen edge */
.hero-filmstrip.is-full{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.hero-filmstrip.is-full .film-strip-shell{border-radius:0}

/* Overline: thin subtitle above the main hero heading */
.hero-overline{
  font-family: var(--kl-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--kl-accent);
}

/* Hero layout: single centered column (text + filmstrip) */
.hero-grid{
  grid-template-columns:1fr;
  justify-items:center;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  padding-inline:var(--kl-header-pad);
}

.site-branding a{
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
}
.site-title{
  font-family:var(--kl-font-heading);
  font-weight:800;
  letter-spacing:.2px;
  font-size:1.05rem;
}
.custom-logo{max-height:44px;width:auto}

.primary-nav{display:flex;align-items:center}
.nav-list{
  list-style:none;
  display:flex;
  gap:18px;
  padding:0;
  margin:0;
  align-items:center;
}
.nav-list a{
  text-decoration:none;
  padding:10px 8px;
  border-radius:0;
  position:relative;
  color:#fff;
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.88;
  text-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:opacity .15s ease, transform .15s ease;
}
.nav-list a:hover{opacity:1}
.nav-list a.is-active{opacity:1}

.nav-toggle{
  display:none;
  border:1px solid var(--kl-border);
  background:transparent;
  border-radius:999px;
  padding:10px 12px;
  gap:6px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle__bar{
  display:block;
  width:20px;height:2px;
  background:currentColor;
  border-radius:99px;
}

@media (max-width: 920px){
  .nav-toggle{display:inline-flex}
  .primary-nav{
    position:fixed;
    inset:var(--kl-header-h) 0 auto 0;
    /* Use a dark translucent background for the mobile menu so it
     * doesn’t appear white. This applies in both light and dark
     * modes, while the border and blur remain for depth. */
    background:rgba(0,0,0,.88);
    border-bottom:1px solid var(--kl-border);
    transform:translateY(-10px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    backdrop-filter:saturate(160%) blur(14px);
  }
  @media (prefers-color-scheme: dark){
    .primary-nav{
      background:rgba(0,0,0,.92);
    }
  }
  .primary-nav.is-open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:10px 14px 16px;
  }
  .nav-list li{border-top:1px solid var(--kl-border)}
  .nav-list li:first-child{border-top:0}
  .nav-list a{padding:14px 10px;border-radius:14px}
}

/* Let the hero sit behind the transparent header */
.site-content{padding-top:0}

/* Ensure anchor jumps don't hide content behind the fixed header */
.section{
  scroll-margin-top:calc(var(--kl-header-h) + 12px);
}

/* Buttons */
.btn{
  --btn-bg:transparent;
  --btn-fg:var(--kl-text);
  --btn-bd:var(--kl-border);

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:var(--kl-btn-radius);
  border:1px solid var(--btn-bd);
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  background:var(--btn-bg);
  color:var(--btn-fg);
  transition:transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{transform:translateY(1px)}

.btn--primary{
  --btn-bg:var(--kl-accent);
  --btn-fg:#0b1220;
  --btn-bd:transparent;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}
.btn--primary:hover{filter:brightness(1.02)}

.btn--ghost{
  --btn-bg:rgba(255,255,255,.14);
  --btn-fg:#fff;
  --btn-bd:rgba(255,255,255,.22);
}
.btn--ghost:hover{background:rgba(255,255,255,.18)}

/* Hero */
.hero{
  position:relative;
  min-height:calc(100vh - var(--kl-header-h));
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
}

/*
 * Create a smooth transition between the hero and the following
 * section. A gradient at the bottom of the hero fades from
 * transparent to the page background colour, giving the
 * impression that the hero image melts into the rest of the
 * layout. This effect is subtle but helps eliminate hard
 * boundaries between sections.
 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  /*
   * Extra soft blend: we add a couple of intermediate stops so the
   * hero image melts into the page background without a visible edge.
   */
  height: 24vw;
  max-height: 380px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.06) 28%,
    rgba(0,0,0,0.14) 58%,
    var(--kl-bg) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:1;
}
.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:3;
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(0,0,0,.22), transparent 60%),
    /* Fade out towards the bottom so the hero blend can be softer */
    linear-gradient(
      180deg,
      rgba(0,0,0,.30) 0%,
      rgba(0,0,0,.62) 55%,
      rgba(0,0,0,.18) 82%,
      rgba(0,0,0,0) 100%
    );
}

.hero-inner{
  position:relative;
  z-index:5;
  width:100%;
  /* Add extra top padding so the content sits comfortably below the fixed header
   * while the hero background remains behind the header. */
  padding:calc(var(--kl-header-h) + 72px) 0 72px;
  color:#fff;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  align-items:center;
  justify-items:center;
  /* Lift the hero content slightly to reduce perceived empty space */
  transform:translateY(-14px);
}

.hero-grid.is-single{
  grid-template-columns:1fr;
}

.hero-grid.is-single .hero-copy{
  max-width:72ch;
  margin-inline:auto;
}

.hero-copy h1{
  font-family:var(--kl-font-heading);
  font-weight:900;
  font-size:clamp(2.2rem, 4vw, 3.6rem);
  line-height:1.02;
  margin:0 0 14px;
  letter-spacing:-.02em;
  /* Prevent awkward mid-word wrapping (e.g. "Mom" + "ente") */
  hyphens:none;
  word-break:normal;
  overflow-wrap:normal;
}

.hero-subtitle{
  margin:0 0 24px;
  font-size:clamp(1.05rem, 1.5vw, 1.25rem);
  opacity:.94;
  max-width:56ch;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.hero-side{
  display:flex;
  justify-content:flex-end;
}

.hero-media-card{
  width:min(520px, 100%);
  border-radius:calc(var(--kl-radius) + 6px);
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.10);
  box-shadow:0 28px 90px rgba(0,0,0,.40);
  overflow:hidden;
  backdrop-filter:saturate(160%) blur(14px);
}

.hero-media-wrap{
  aspect-ratio: 4 / 5;
  width:100%;
  position:relative;
  background:rgba(0,0,0,.20);
}

.hero-media-wrap img,
.hero-media-wrap video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-media-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-side{justify-content:flex-start}
  .hero-media-wrap{aspect-ratio: 16 / 9}
}

@media (max-width: 640px){
  /* Mobile Hero: kompakter, klarer und ohne „leere“ Flächen */
  .hero-inner{padding:calc(var(--kl-header-h) + 40px) 0 56px}
  .hero-grid{transform:translateY(-12px);gap:18px}
  .hero-copy{ text-align:center; }

  .hero-overline{font-size:.78rem;letter-spacing:.10em}
  .hero-copy h1{font-size:clamp(1.9rem, 8.4vw, 2.6rem);line-height:1.05;margin-bottom:12px}
  .hero-subtitle{margin-inline:auto;font-size:1.05rem;max-width:38ch;margin-bottom:18px}

  .hero-actions{justify-content:center;gap:10px}
  .hero-actions .btn{padding:12px 16px}

  .hero-filmstrip{width:100%;margin-top:18px}
  /* Streifen auf kleinen Screens etwas kleiner skalieren, damit er sauber im Viewport sitzt */
  .hero-filmstrip .film-strip-container{transform:rotate(var(--film-angle, 22deg)) scale(.92)}
}

@media (max-width: 420px){
  .hero-inner{padding:calc(var(--kl-header-h) + 32px) 0 52px}
  .hero-grid{transform:translateY(-10px)}
  .hero-copy h1{font-size:clamp(1.7rem, 9.2vw, 2.35rem)}
  .hero-overline{font-size:.74rem}
}

.hero-fallback{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(245,158,11,.28), transparent 60%),
    radial-gradient(900px 600px at 90% 90%, rgba(99,102,241,.18), transparent 60%),
    linear-gradient(180deg, rgba(17,24,39,.45), rgba(0,0,0,.72));
}

/* Sektionen */
.section{
  padding:92px 0;
  background:var(--kl-bg);
}

.section .section-header{
  margin-bottom:28px;
  text-align:center;
}

.section .section-header h2{
  font-family:var(--kl-font-heading);
  font-weight:900;
  font-size:clamp(1.7rem, 2.7vw, 2.4rem);
  margin:0 0 10px;
  letter-spacing:-.02em;
}

.section .section-header p,
.section .section-header div{
  margin:0;
  color:var(--kl-muted);
  max-width:76ch;
  margin-inline:auto;
}

/* FAQ (Accordion) */
.faq-accordion{
  width:min(900px, 100%);
  margin:0 auto;
  display:grid;
  gap:12px;
}

.faq-item{
  border:1px solid var(--kl-border);
  border-radius:18px;
  background:var(--kl-surface2);
  box-shadow:var(--kl-shadow-soft);
  overflow:hidden;
}

.faq-item summary{
  cursor:pointer;
  padding:16px 18px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  list-style:none;
}

.faq-item summary::-webkit-details-marker{display:none}

.faq-a{
  padding:0 18px 16px;
  color:var(--kl-muted);
}

.faq-a p{margin:0 0 10px}
.faq-a p:last-child{margin-bottom:0}

.faq-icon{
  width:18px;
  height:18px;
  position:relative;
  opacity:.7;
  flex:0 0 auto;
}

.faq-icon:before,
.faq-icon:after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  background:currentColor;
  border-radius:99px;
}

.faq-icon:before{width:18px;height:2px}
.faq-icon:after{width:2px;height:18px}
.faq-item[open] .faq-icon:after{display:none}

@media (max-width: 920px){
  .section{padding:76px 0}
}

/* Split-Layouts */
.two-col{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:34px;
  align-items:center;
}

.two-col.two-col--single{
  grid-template-columns:1fr;
}

.section-copy p{margin:0 0 14px}
.section-copy p:last-child{margin-bottom:0}

.section-media{
  border-radius:var(--kl-radius);
  overflow:hidden;
  box-shadow:var(--kl-shadow);
  border:1px solid var(--kl-border);
  background:var(--kl-surface);
}

.section-media img{width:100%;height:auto}

@media (max-width: 920px){
  .two-col{grid-template-columns:1fr}
}

/* Karten */
.cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}

.card{
  border:1px solid var(--kl-border);
  background:var(--kl-surface2);
  border-radius:var(--kl-radius);
  padding:18px 18px 16px;
  box-shadow:var(--kl-shadow-soft);
  backdrop-filter:saturate(160%) blur(12px);
}

@media (prefers-color-scheme: dark){
  .card{background:rgba(17,24,39,.66)}
}

.card h3{
  font-family:var(--kl-font-heading);
  margin:0 0 8px;
  font-size:1.15rem;
  font-weight:900;
}

.card p{margin:0;color:var(--kl-muted)}

.card .price{
  font-size:1.9rem;
  font-weight:900;
  margin:12px 0 10px;
}

.card ul{
  margin:0;
  padding-left:18px;
  color:var(--kl-muted);
}

.card li{margin:6px 0}

@media (max-width: 980px){
  .cards{grid-template-columns:repeat(2, minmax(0,1fr))}
}

@media (max-width: 640px){
  .cards{grid-template-columns:1fr}
}

.section-cta{
  margin-top:22px;
  display:flex;
  justify-content:center;
}

/* Portfolio Karussell */
.kl-carousel{
  position:relative;
}

.kl-carousel__viewport{
  overflow:auto hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.kl-carousel__viewport::-webkit-scrollbar{display:none}

.kl-carousel__track{
  display:flex;
  gap:14px;
  padding:4px 2px 16px;
}

.kl-carousel__slide{
  display:block;
  flex:0 0 clamp(240px, 32vw, 380px);
  scroll-snap-align:center;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--kl-border);
  background:var(--kl-surface);
  box-shadow:0 18px 55px rgba(0,0,0,.10);
  transform:translateZ(0);
}

.kl-carousel__slide img{
  width:100%;
  height:280px;
  object-fit:cover;
  transition:transform .45s ease;
}

.kl-carousel__slide:hover img{transform:scale(1.03)}

@media (max-width: 520px){
  .kl-carousel__slide img{height:240px}
}

.kl-carousel__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid var(--kl-border);
  background:var(--kl-surface2);
  box-shadow:var(--kl-shadow-soft);
  backdrop-filter:saturate(160%) blur(12px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
}

.kl-carousel__btn:hover{filter:brightness(1.03)}
.kl-carousel__btn:active{transform:translateY(-50%) scale(.98)}

.kl-carousel__btn--prev{left:-6px}
.kl-carousel__btn--next{right:-6px}

@media (max-width: 920px){
  .kl-carousel__btn{display:none}
}

/* Kontakt */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}

.contact-box{
  border:1px solid var(--kl-border);
  border-radius:var(--kl-radius);
  padding:18px;
  background:var(--kl-surface2);
  box-shadow:var(--kl-shadow-soft);
  backdrop-filter:saturate(160%) blur(12px);
}

@media (prefers-color-scheme: dark){
  .contact-box{background:rgba(17,24,39,.66)}
}

.contact-box h3{
  font-family:var(--kl-font-heading);
  margin:0 0 10px;
  font-size:1.1rem;
  font-weight:900;
}

.contact-list{
  list-style:none;
  padding:0;
  margin:0;
  color:var(--kl-muted);
}

.contact-list li{margin:10px 0}

.contact-list a{
  color:var(--kl-text);
  text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.22);
}

@media (prefers-color-scheme: dark){
  .contact-list a{border-bottom-color:rgba(226,232,240,.28)}
}

.contact-media{
  padding:0;
  overflow:hidden;
}

.contact-media img{width:100%;height:100%;object-fit:cover}

/* Kontaktformular */
.contact-form-box{display:flex;flex-direction:column;gap:14px}

.contact-notice{
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  font-size:.95rem;
  border:1px solid transparent;
  background:rgba(255,255,255,.18);
  color:var(--kl-text);
}
@media (prefers-color-scheme: dark){
  .contact-notice{background:rgba(17,24,39,.52)}
}

.contact-notice.is-success{background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.35)}
.contact-notice.is-error{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.35)}

.contact-form{display:grid;gap:12px}
.contact-form label{display:block}
.contact-form span{display:block;margin:0 0 6px;font-weight:700;font-size:.85rem;color:var(--kl-muted)}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--kl-border);
  background:rgba(255,255,255,.72);
  color:var(--kl-text);
  outline:none;
}
.contact-form textarea{resize:vertical;min-height:120px}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color:rgba(245,158,11,.75);
  box-shadow:0 0 0 4px rgba(245,158,11,.18);
}
@media (prefers-color-scheme: dark){
  .contact-form input,
  .contact-form textarea{background:rgba(11,15,25,.60)}
}

.contact-form__row--2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 520px){
  .contact-form__row--2{grid-template-columns:1fr}
}

.contact-form__actions{display:flex;justify-content:flex-start;padding-top:4px}

.contact-form__hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.contact-mini{margin-top:6px;padding-top:12px;border-top:1px solid var(--kl-border)}

@media (max-width: 860px){
  .contact-grid{grid-template-columns:1fr}
}

/* Footer */
.site-footer{
  padding:30px 0 40px;
  border-top:1px solid var(--kl-border);
  background:var(--kl-bg);
}

.footer-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.footer-thanks{
  font-weight:800;
  text-decoration:none;
  color:var(--kl-text);
  border-bottom:1px solid rgba(0,0,0,.22);
}

@media (prefers-color-scheme: dark){
  .footer-thanks{border-bottom-color:rgba(226,232,240,.28)}
}

.footer-meta{
  color:var(--kl-muted);
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.footer-imprint.is-hidden{display:none}

.footer-link{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.footer-link:hover{
  color:var(--kl-text);
  border-bottom-color:currentColor;
}

.footer-sep{opacity:.55}

/* ------------------------------------------------------------
 * Page template (page.php)
 * ------------------------------------------------------------ */
.page-hero{
  padding: 42px 0 10px;
}
.page-title{
  font-family: var(--kl-font-heading);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}
.page-section{
  /* Override the default section padding for regular pages */
  padding: 56px 0 90px;
}
.page-card{
  max-width: 900px;
  margin: 0 auto;
}

/* Lightbox */
.kl-lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:2000;
  background:rgba(0,0,0,.78);
  align-items:center;
  justify-content:center;
  padding:22px;
}

.kl-lightbox.is-open{display:flex}

.kl-lightbox__dialog{
  position:relative;
  width:min(1100px, 100%);
  max-height:calc(100vh - 44px);
  display:grid;
  gap:12px;
}

.kl-lightbox__figure{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  background:#000;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 22px 70px rgba(0,0,0,.55);
}

.kl-lightbox__figure img{
  width:100%;
  height:auto;
  max-height:calc(100vh - 160px);
  object-fit:contain;
  background:#000;
}

.kl-lightbox__caption{
  color:rgba(255,255,255,.92);
  font-size:.95rem;
  text-align:center;
}

.kl-lightbox__close,
.kl-lightbox__nav{
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.12);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.kl-lightbox__close{
  position:absolute;
  top:-10px;
  right:-10px;
}

.kl-lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
}

.kl-lightbox__prev{left:-10px}
.kl-lightbox__next{right:-10px}

@media (max-width: 700px){
  .kl-lightbox__prev{left:8px}
  .kl-lightbox__next{right:8px}
}

/* ------------------------------------------------------------
 * Fix: Konsistente Text- & Menüfarben auf Smartphones
 * ------------------------------------------------------------
 * Auf einigen Smartphones wird aufgrund der System-Einstellung
 * (prefers-color-scheme: dark) eine dunkle Farbpalette aktiviert.
 * Dadurch wird die globale Textfarbe sehr hell und wirkt auf
 * hellen/pastelligen Hintergründen „ausgewaschen“.
 *
 * Wir erzwingen für Text/Mute-Farben dieselben Werte wie in der
 * Desktop-/Light-Ansicht und sorgen dafür, dass das Hamburger-Menü
 * immer die aktuelle Textfarbe übernimmt (statt z.B. blau zu werden).
 */

:root{
  color-scheme: light;
}

@media (prefers-color-scheme: dark){
  :root{
    --kl-bg:#ffffff;
    --kl-surface:#f6f7f9;
    --kl-surface2:rgba(255,255,255,.62);
    --kl-text:#0b1220;
    --kl-muted:#475569;
    --kl-border:rgba(15,23,42,.12);
    --kl-shadow:0 18px 60px rgba(0,0,0,.10);
    --kl-shadow-soft:0 12px 30px rgba(0,0,0,.06);
  }

  /* Dark-Mode Overrides zurück auf Desktop/Light setzen */
  .card{background:var(--kl-surface2);}
  .contact-box{background:var(--kl-surface2);}
  .contact-list a{border-bottom-color:rgba(0,0,0,.22);}
  .contact-notice{background:rgba(255,255,255,.18);}
  .contact-form input,
  .contact-form textarea{background:rgba(255,255,255,.72);}
  .footer-thanks{border-bottom-color:rgba(0,0,0,.22);}
}


/* Hamburger-Icon immer wie Webseiten-Text einfärben */
.nav-toggle{
  color:var(--kl-text);
  -webkit-appearance:none;
  appearance:none;
}
