/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* This code makes the GeneratePress header sticky. */

.site-header {
    position: sticky;        /*make it stick */
    top: 0;                      /* stick it to the top of the window */
    z-index: 999;           /* draw it over other elements */
}

.admin-bar .site-header {
    top: 32px;     /* fix the offset for admin bar when logged in */
}

__________

/* This code makes frosted glass. */
.layout-set-first .frosted {    
       backdrop-filter:blur(7px);           -webkit-backdrop-filter:blur(7px);  }

#footer-widgets
.widget {
    font-size: 14px;
}

.copyright-bar {
  font-size: 12px;
}

__________

body.layout-set-second {
    position: relative;
}

/* Hintergrund Bild */
body.layout-set-second::before {
    content: "";
    background-image: url(https://pbnf.ch/wp-content/uploads/2026/03/wrinkled-paper-1-scaled.webp);
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Hier stellst du die Transparenz ein */
    opacity: 0.5; 
    
    /* Fixiert das Bild im Hintergrund */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/*.site.grid-container {
    background-color: transparent;
}

.site-content, .site-header, .site-footer {
    background-color: transparent;
}

.footer-widgets {
    background-color: transparent;
}*/

/* Silbentrennung Mobile */
@media screen and (max-width: 768px) {
  /* Gilt für die gesamte Website */
  html, body {
    -webkit-hyphens: auto; /* Safari/iOS */
    -ms-hyphens: auto;      /* Ältere Edge/IE */
    hyphens: auto;          /* Standard */
    
    /* Verhindert Layout-Sprengung bei URLs oder extrem langen Wörtern */
    overflow-wrap: break-word; 
    word-wrap: break-word; 
  }
	 /* Schaltet die Silbentrennung für alle Überschriften aus */
  h1, h2, h3, h4, h5, h6 {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
  }
}

/* Contact Form 7 GRUND-EINSTELLUNGEN */
.layout-set-second .wpcf7 { padding: 0 20px; box-sizing: border-box; }
.layout-set-second .wpcf7 input, .layout-set-second .wpcf7 select, .layout-set-second .wpcf7 textarea { width: 100% !important; box-sizing: border-box; }

.layout-set-second .wpcf7-submit {
    /* Breite auf Desktop: nur so breit wie der Text + Padding */
    width: auto !important; 
    min-width: 180px;      /* Mindestbreite, damit er nicht zu mickrig aussieht */
    padding: 12px 30px !important;
    display: inline-block !important;
    transition: all 0.3s ease;
}

/* Filtert ungewollte WP-Tags aus dem Grid */
.layout-set-second .form-grid > br, .form-grid > p { display: none !important; }

/* DESKTOP (ab 768px) */
@media (min-width: 768px) {
    .layout-set-second .form-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-column-gap: 10px;
				
    }
	
    .layout-set-second .form-item-wide {
        grid-column: 1 / 4 !important;
        grid-row: 2 !important; /* Festgehalten in Zeile 2 */				
    }

    .layout-set-second .form-item-button {
        grid-column: 4 / 5 !important;
        grid-row: 2 !important; /* Zwingt den Button in dieselbe Zeile wie das Textfeld */
        /*align-self: start !important;*/
        
         /* POSITIONS-TRICK */
        position: relative; 
        top: 116px; /* Hier den Pixelwert anpassen, bis es bündig ist */
        display: block !important;
    }
}

/* MOBILE QUERFORMAT (Landscape) */
@media (max-width: 950px) and (orientation: landscape) {
    .layout-set-second .form-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-column-gap: 10px;
				grid-row-gap: 0px;
    }
    .layout-set-second .form-item-wide, .form-item-button { grid-column: span 2 !important; }
		.form-item-button {
        text-align: left;  /* Button linksbündig (weniger Klick-Gefahr rechts) */
    }
    .layout-set-second .wpcf7-submit {
        width: 60% !important; /* Nimmt nicht mehr die ganze Breite ein */
        max-width: 250px;      /* Verhindert extremes Strecken */
    }
	
	.layout-set-second .wpcf7-form-control.wpcf7-select {
    height: 47.5px !important;
    min-height: 40px !important;
    line-height: normal !important;
    padding: 0 10px !important; /* Pass das Padding an deine Textfelder an */
    box-sizing: border-box !important;
}
}

/* MOBILE HOCHFORMAT */
@media (max-width: 767px) and (orientation: portrait) {
    .layout-set-second .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px;
    }
}

/* Button-Styling */
.layout-set-second .wpcf7-submit {
    width: 100% !important;
    padding: 12px !important;
    margin: 0 !important;
}

/* Erwingt das Umfließen auf Mobilgeräten (max 767px) */
@media (max-width: 767px) {
    /* Wir sprechen das Bild innerhalb deines Widgets an */
    .layout-set-second .wrap-bild img {
        float: left !important;
        width: 40% !important;
        margin-right: 15px !important;
        margin-bottom: 5px !important;
        display: inline !important;
    }

    /* Wir stellen sicher, dass der Text nicht zwangsweise in die nächste Zeile springt */
    .layout-set-second .wrap-bild {
        display: block !important;
    }
    
    /* Entfernt eventuelle unsichtbare Trenner, die das Wrapping verhindern */
    .layout-set-second .wrap-bild::after {
        content: none !important;
        display: none !important;
    }
}

/* Gilt nur für Bildschirme breiter als 1200px */
@media screen and (min-width: 1600px) {
    .layout-set-second .flumsi {
        min-height: 50vh !important; /* Erzeugt genug Scroll-Fläche */
        padding-top: 0px !important;
        padding-bottom: 150px !important;
        background-attachment: fixed !important;
        background-size: 90% auto !important; /* Bildbreite passt sich an, ohne extrem zu beschneiden */
        background-repeat: no-repeat !important;
			background-position: center center !important;
    }
}

@media (min-width: 1600px) {
    /* 1. Hauptinhalt der Seite (Text/Bilder) auf 95% */
    body .layout-set-second .grid-container {
        max-width: 90% !important;
    }

    /* 2. Header & Navi technisch auf 100% lassen (gegen den Umbruch) */
    .layout-set-second .site-header .grid-container, 
    .layout-set-second .main-navigation .grid-container {
        max-width: 100% !important;
        width: 100% !important;
        /* Aber hier schieben wir den Inhalt (Logo/Links) optisch nach innen: */
        padding-left: 6% !important; 
        padding-right: 6% !important;
        
        display: flex !important;
        flex-wrap: nowrap !important; /* Verbot der 2. Zeile */
    }

    /* 3. Sicherstellen, dass das Menü-Element selbst nicht umbricht */
    .layout-set-second .main-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
}

@media (min-width: 1600px) {
    /* 1. Verhindert, dass der Text innerhalb eines Menüpunkts umbricht */
    .layout-set-second .main-navigation .main-nav ul li a {
        white-space: nowrap !important;
        /* Optional: Falls es immer noch eng ist, Abstände minimal verringern */
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 2. Sicherstellen, dass die Liste der Menüpunkte nicht umbricht */
    .layout-set-second .main-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
    } 
 }

__________

/* ── PBNF GLOBAL STYLES ── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* Farbvariablen */
.layout-set-third:root {
  --cream:   #F7F3EE;
  --warm:    #EDE5D8;
  --sage:    #8BA888;
  --sage-dk: #5E7A5C;
  --stone:   #B8A99A;
  --ink:     #2C2825;
  --mid:     #6B5F58;
  --border:  #D9CFC5;
  --white:   #FDFAF7;
}

/* Grundlayout */
body.layout-set-third {
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
}

/* Seiten-Hintergrund für alle Elementor-Seiten */
.layout-set-third.elementor-page {
  background: var(--cream);
}

/* ── TYPOGRAFIE ── */
.layout-set-third.pbnf-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.12;
  color: var(--ink);
}
.layout-set-third.pbnf-display em {
  font-style: italic;
  color: var(--sage-dk);
}
.layout-set-third.pbnf-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.layout-set-third.pbnf-lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  font-family: 'DM Sans', sans-serif;
}

/* ── DIVIDER ── */
.layout-set-third.pbnf-divider {
  width: 48px;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
  margin: 1.2rem 0 1.5rem;
}

/* ── BUTTONS ── */
.layout-set-third.pbnf-btn-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem !important;
  border-radius: 3rem !important;
  background: var(--sage-dk) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(94,122,92,0.3) !important;
  transition: all 0.25s !important;
  text-decoration: none !important;
}
.layout-set-third.pbnf-btn-primary:hover {
  background: #4a6348 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(94,122,92,0.4) !important;
}
.layout-set-third.pbnf-btn-outline {
  display: inline-flex !important;
  align-items: center;
  padding: 0.85rem 1.8rem !important;
  border-radius: 3rem !important;
  background: transparent !important;
  color: var(--sage-dk) !important;
  border: 1.5px solid var(--sage) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  transition: all 0.25s !important;
  text-decoration: none !important;
}
.layout-set-third.pbnf-btn-outline:hover {
  background: rgba(138,168,136,0.08) !important;
}

/* ── TAG / BADGE ── */
.layout-set-third.pbnf-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dk);
  background: rgba(138,168,136,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid rgba(138,168,136,0.3);
  font-family: 'DM Sans', sans-serif;
}

/* ── CHIP-REIHE ── */
.layout-set-third.pbnf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.8rem;
}
.layout-set-third.pbnf-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--mid);
  background: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.pbnf-chip:hover {
  border-color: var(--sage);
  color: var(--sage-dk);
}

/* ── KARTEN ── */
.layout-set-third.pbnf-card {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.25s;
}
.layout-set-third.pbnf-card:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(94,122,92,0.12);
}
.layout-set-third.pbnf-card-lg {
  background: var(--white);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 40px rgba(44,40,37,0.08);
}

/* ── BEHANDLUNGSFELD-GRID ── */
.layout-set-third.pbnf-felder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.layout-set-third.pbnf-feld {
  background: var(--cream);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.layout-set-third.pbnf-feld:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(94,122,92,0.12);
}
.layout-set-third.pbnf-feld-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.layout-set-third.pbnf-feld-title { font-size: 0.88rem; font-weight: 500; color: var(--ink); }

/* ── SCHRITT-KARTEN ── */
.layout-set-third.pbnf-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.layout-set-third.pbnf-step:hover { border-color: var(--sage); }
.layout-set-third.pbnf-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--sage-dk);
  line-height: 1;
  min-width: 2rem;
}
.layout-set-third.pbnf-step-title { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.25rem; }
.layout-set-third.pbnf-step-desc { font-size: 0.82rem; color: var(--mid); line-height: 1.6; font-weight: 300; }

/* ── KRANKENKASSE-BADGE ── */
.layout-set-third.pbnf-kk-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--mid);
  background: rgba(138,168,136,0.1);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(138,168,136,0.25);
  margin-top: 1rem;
  font-family: 'DM Sans', sans-serif;
}
.layout-set-third.pbnf-kk-dot {
  width: 7px; height: 7px;
  background: var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── STAT-KARTEN ── */
.layout-set-third.pbnf-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.layout-set-third.pbnf-stat {
  background: var(--cream);
  border-radius: 0.75rem;
  padding: 1rem;
}
.layout-set-third.pbnf-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--sage-dk);
  line-height: 1;
}
.layout-set-third.pbnf-stat-label {
  font-size: 0.72rem;
  color: var(--stone);
  margin-top: 0.2rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── ZITAT-SECTION ── */
.layout-set-third.pbnf-quote-section {
  background: linear-gradient(135deg, #5E7A5C 0%, #4a6348 100%);
  padding: 5rem 2rem;
  text-align: center;
}
.layout-set-third.pbnf-blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 1rem;
}
.layout-set-third.pbnf-cite {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
}

/* ── HERO-SECTION ── */
.layout-set-third.pbnf-hero-section {
  background: linear-gradient(145deg, #EDE5D8 0%, #E2D8CC 40%, #D4CFCA 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.layout-set-third.pbnf-hero-section::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,168,136,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── SEKTION-WECHSEL ── */
.layout-set-third.pbnf-section-white {
  background: var(--white);
  padding: 5rem 0;
}
.layout-set-third.pbnf-section-cream {
  background: var(--cream);
  padding: 5rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .layout-set-third.pbnf-felder-grid { grid-template-columns: 1fr 1fr; }
  .layout-set-third.pbnf-stats-grid { grid-template-columns: 1fr 1fr; }
}

