/* =============================================================
   base.responsive.css  —  Gemeinsames Responsive-Grundgeruest
   -------------------------------------------------------------
   THEME-AGNOSTISCH (keine Farben/Logos). Nur Layout- und
   Breakpoint-Regeln, die ALLE Seiten unter diesem Server erben
   sollen (TZJ, MediPhys, sisaB, Schokoladenpalais ...).
   Ziel-Location (Phase 2): packages/tzj_base/Resources/Public/Css/
   Aktuell via page.includeCSS NACH site.v2.css eingebunden.

   Breakpoints: Mobil <768px | Tablet 768-1023px | Desktop >=1024px
   Pflicht-Testbreiten: 375 / 768 / 1280
   ============================================================= */

/* ---- 1) Karten-Raster: mobile-first 1 -> Tablet 2 -> Desktop 3 ---- */
@media (max-width: 767px){
  .cards-row--2,
  .cards-row--3 { grid-template-columns: 1fr !important; }
}
@media (min-width: 768px) and (max-width: 1023px){
  .cards-row--2,
  .cards-row--3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 1024px){
  .cards-row--2 { grid-template-columns: repeat(2, 1fr) !important; }
  .cards-row--3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---- 2) Seiten-Innenabstand auf Mobil reduzieren (statt 32px) ---- */
@media (max-width: 767px){
  .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---- 3) Horizontales Ueberlaufen auf Mobil verhindern ---- */
@media (max-width: 767px){
  html, body { overflow-x: hidden; }
  .card-cta, .header-cta, .tzj-jobs-teaser__cta, .job-item__btn { white-space: normal; }
}

/* ===== COWORK NAV/HERO/TEASER (2026-06-15) ===== */

/* Hamburger nur mobil; Toggle unsichtbar */
.tzj-nav-toggle{ position:absolute; left:-9999px; width:1px; height:1px; }
.tzj-nav-burger{ display:none; }
.tzj-nav-burger span{ display:block; width:24px; height:3px; border-radius:3px; background:var(--blue); }

@media (max-width: 767px){
  /* Header: Grid -> einfache Flex-Zeile */
  .header__grid{ display:flex !important; flex-wrap:wrap; align-items:center; padding:8px 16px !important; gap:8px; }
  .header__logo-wrap{ order:1; padding:0 !important; background:transparent !important; }
  .tzj-nav-burger{ order:2; margin-left:auto; display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
                   width:46px; height:46px; padding:11px; cursor:pointer; border-radius:10px; border:1px solid var(--n2); background:#fff; }
  .header__toprow{ display:none !important; }
  .header__navrow{ order:3; flex-basis:100%; display:none !important; padding:0 !important; }
  .tzj-nav-toggle:checked ~ .header__grid .header__navrow{ display:block !important; }
  .header__navrow .nav{ flex-direction:column !important; gap:2px !important; padding:6px 0 10px !important; }
  .header__navrow .nav__link{ display:block !important; padding:12px 10px !important; border-bottom:1px solid var(--n2) !important; }
  .header__navrow .nav__link.is-active{ border-left:4px solid var(--orange) !important; background:rgba(17,69,143,.05) !important; }
  .brand__logo{ height:44px !important; }

  /* Hero */
  .tzj-hero{ padding:32px 20px !important; }
  .tzj-hero__ctas{ flex-direction:column; gap:10px; }
  .tzj-hero__cta-primary, .tzj-hero__cta-secondary{ width:100%; text-align:center; box-sizing:border-box; }

  /* Jobs-Teaser */
  .tzj-jobs-teaser{ padding:26px 20px !important; }
  .tzj-jobs-teaser__cta{ width:100%; text-align:center; box-sizing:border-box; }
}

/* ===== COWORK CONTENT/MOBILE (Custom-HTML, Listen) 2026-06-15 ===== */
@media (max-width: 767px){
  /* lange Woerter brechen, nichts erzwingt Ueberbreite */
  .content-area h1,.content-area h2,.content-area h3,.content-area p,.content-area li,.tzj-hero__headline{ overflow-wrap:break-word; word-break:break-word; }
  /* Inline-2-Spalter im Custom-HTML auf 1 Spalte */
  .content-area [style*="grid-template-columns"]{ grid-template-columns:1fr !important; }
  /* Grid-/Flex-Kinder duerfen unter min-content schrumpfen */
  .content-area [style*="grid"] > *, .content-area [style*="flex"] > *{ min-width:0; }
  /* grosse Inline-Paddings der runden Custom-Boxen zaehmen */
  .content-area div[style*="border-radius"]{ padding-left:18px !important; padding-right:18px !important; }
  /* Bilder nie breiter als der Container */
  .content-area img{ max-width:100%; height:auto; }
}

/* ===== COWORK FORMULARE/MOBILE 2026-06-15 ===== */
@media (max-width: 767px){
  .frame-type-form_formframework .form-control,
  .frame-type-form_formframework input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
  .frame-type-form_formframework textarea,
  .frame-type-form_formframework select{ width:100% !important; box-sizing:border-box !important; }
  .frame-type-form_formframework .btn,
  .frame-type-form_formframework button[type=submit]{ width:100%; }
}

/* ===== Verkaufs-Kursliste (Termine) ===== */
.kurs-liste{ display:flex; flex-direction:column; gap:12px; margin:14px 0 20px; }
.kurs-card{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; background:#fff; border:1px solid #E6E8EC; border-radius:14px; padding:16px 20px; box-shadow:0 4px 20px rgba(17,24,39,.05); }
.kurs-date{ background:rgba(17,69,143,.08); color:var(--blue); border-radius:10px; padding:10px 14px; text-align:center; min-width:96px; }
.kurs-date__day{ display:block; font-size:19px; font-weight:800; line-height:1.15; }
.kurs-date__year{ display:block; font-size:13px; }
.kurs-info{ flex:1; min-width:200px; }
.kurs-title{ font-size:16px; font-weight:800; color:var(--n4); }
.kurs-meta{ font-size:13px; color:#777; margin-top:4px; }
.kurs-badge{ display:inline-block; margin-top:8px; font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px; }
.kurs-badge--foerder{ background:rgba(15,110,86,.12); color:#0F6E56; }
.kurs-action{ text-align:right; min-width:150px; }
.kurs-price{ font-size:20px; font-weight:900; color:var(--n4); }
.kurs-seats{ font-size:12px; color:#0F6E56; margin:2px 0 8px; }
.kurs-seats--low{ color:var(--orange); }
.kurs-seats--full{ color:#b00020; }
.kurs-cta{ display:inline-block; background:var(--orange); color:#fff !important; text-decoration:none !important; font-weight:800; font-size:14px; padding:9px 18px; border-radius:10px; transition:background .15s; }
.kurs-cta:hover{ background:#d45a15; }
.kurs-cta--wait{ background:#fff; color:var(--blue) !important; border:1.5px solid var(--n2); }
.kurs-card--full{ opacity:.92; }
@media (max-width:767px){ .kurs-action{ text-align:left; min-width:0; width:100%; } .kurs-info{ min-width:0; } .kurs-card{ padding:14px 16px; } }

.kurs-note{ font-size:12px; color:#888; font-style:italic; margin-top:4px; }

.kurs-teaser-title{ text-align:center; margin:0 0 1.25rem; }
.kurs-liste--teaser{ max-width:820px; margin:0 auto; }
.kurs-teaser-cta{ text-align:center; margin-top:1.5rem; }
.kurs-cta--big{ display:inline-block; padding:14px 30px; font-size:16px; }

.kurs-hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;align-items:stretch;margin:8px 0}
.kurs-hero-feat{background:#fff;border:1px solid #E6E8EC;border-radius:14px;padding:22px 24px;display:flex;flex-direction:column}
.kurs-hero-eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#EC661B;font-weight:700}
.kurs-hero-title{font-size:24px;font-weight:800;color:#111827;margin:6px 0 4px;line-height:1.15}
.kurs-hero-date{font-size:16px;font-weight:700;color:#111827}
.kurs-hero-meta{color:#555;margin:2px 0 10px}
.kurs-hero-spacer{flex:1 1 auto;min-height:6px}
.kurs-hero-priceline{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:6px}
.kurs-hero-feat .kurs-price{font-size:26px;font-weight:800;color:#111827}
.kurs-hero-incl{font-size:13px;color:#3b7d3b;font-weight:600}
.kurs-hero-feat .kurs-cta{margin-top:14px;align-self:flex-start}
.kurs-hero-list{background:#faf9f7;border:1px solid #E6E8EC;border-radius:14px;padding:18px 20px}
.kurs-hero-list h3{margin:0 0 8px;font-size:18px;color:#111827}
a.kurs-hero-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #ededed;color:#222;text-decoration:none}
a.kurs-hero-row:first-of-type{border-top:0}
.kurs-hero-row .r-date{font-weight:700;font-size:13px;color:#EC661B;white-space:nowrap}
.kurs-hero-row .r-title{font-size:14px;color:#222}
.kurs-hero-row .r-price{font-weight:700;font-size:14px;white-space:nowrap}
.kurs-hero-all{display:inline-block;margin-top:12px;color:#EC661B;font-weight:700;text-decoration:none}
.kurs-cta--big{display:inline-block;padding:13px 26px;font-size:16px}
@media (max-width:768px){.kurs-hero-grid{grid-template-columns:1fr}}
.hotel-group{font-size:18px;color:#EC661B;margin:20px 0 8px}
.hotel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:0 0 8px}
.hotel-card{background:#fff;border:1px solid #E6E8EC;border-radius:12px;padding:14px 16px}
.hotel-name{font-weight:800;font-size:16px;color:#111827}
.hotel-addr{color:#555;font-size:14px;margin:2px 0}
.hotel-price{font-size:14px;margin:6px 0;color:#222}
.hotel-note{font-size:13px;color:#EC661B;margin:4px 0}
.hotel-contact{font-size:13px;color:#444}
.hotel-card a,.hotel-hint a{color:#EC661B;text-decoration:none}
.hotel-hint{font-size:14px;margin-top:16px}

.ms-h{font-size:22px;font-weight:800;color:#15406e;margin:0 0 14px}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.why-card{border:1px solid #e6e8ec;border-left:3px solid #EC661B;border-radius:10px;padding:12px 14px;background:#fff}
.why-card h4{margin:0 0 3px;font-size:15px;color:#111827}
.why-card p{margin:0;font-size:13px;color:#5a6172}
.steps{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.step{text-align:center;padding:4px 6px}
.step .n{width:34px;height:34px;border-radius:50%;background:#EC661B;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 8px}
.step h4{margin:0;font-size:14px;color:#111827}
.step p{margin:0;font-size:12px;color:#5a6172}
.fb-tiles{display:flex;flex-wrap:wrap;gap:8px}
.fb-tile{border:1px solid #e6e8ec;border-radius:8px;padding:9px 13px;font-size:14px;background:#faf9f7;color:#15406e;text-decoration:none}
.fb-tile b{color:#EC661B}
.foerder-note{margin-top:16px;background:#fff7f1;border:1px solid #f3d9c6;border-radius:10px;padding:12px 14px;font-size:13px;color:#8a4a23}
.ms-divider{height:1px;background:#eee;margin:22px 0}
@media(max-width:768px){.why-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr}}

.kurs-filter{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin:0 0 18px;padding:14px 16px;background:#faf9f7;border:1px solid #E6E8EC;border-radius:12px}
.kf-field{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#5a6172}
.kf-field select{padding:8px 10px;border:1px solid #ccc;border-radius:8px;font-size:14px;background:#fff;min-width:170px}
.kf-check{display:flex;align-items:center;gap:6px;font-size:14px;color:#333}
.kf-count{margin-left:auto;font-size:13px;font-weight:700;color:#15406e}
@media(max-width:600px){.kf-field select{min-width:140px}.kf-count{margin-left:0;width:100%}}

.bereich-intro{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 20px}
.bi-tile{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid #E6E8EC;border-left:3px solid #EC661B;border-radius:10px;background:#fff;text-decoration:none}
.bi-tile b{color:#15406e;font-size:14px}
.bi-tile span{color:#5a6172;font-size:12px}
.bi-tile:hover{background:#faf9f7}

.dozenten-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.dozent-card{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #E6E8EC;border-radius:12px;padding:12px 14px}
.dozent-avatar{width:46px;height:46px;border-radius:50%;background:rgba(21,64,110,.1);color:#15406e;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex-shrink:0}
.dozent-name{font-weight:800;font-size:15px;color:#111827}
.dozent-spec{font-size:12px;color:#EC661B;font-weight:600;margin-top:2px}
.dozent-vita{font-size:13px;color:#5a6172;margin-top:6px;line-height:1.5}

.kurs-konzept{display:inline-block;font-size:11px;font-weight:700;color:#15406e;background:#eef3f9;border-radius:6px;padding:2px 8px;margin-top:4px}
.kurs-weitere{font-size:12px;color:#5a6172;margin-top:4px;line-height:1.45}

.kursdetail{max-width:800px}
.kursdetail-back{display:inline-block;color:#EC661B;text-decoration:none;font-weight:700;margin-bottom:10px}
.kursdetail-title{font-size:26px;font-weight:800;color:#15406e;margin:0 0 6px;line-height:1.15}
.kursdetail-meta{color:#5a6172;margin-bottom:14px}
.kursdetail-facts{background:#faf9f7;border:1px solid #E6E8EC;border-radius:12px;padding:14px 16px;margin-bottom:16px;font-size:14px;line-height:1.7}
.kursdetail-text{font-size:15px;line-height:1.7;color:#333;margin-bottom:18px}
.kurs-title a{color:inherit;text-decoration:none}
.kurs-title a:hover{color:#EC661B}

/* ===== MEDIPHYS-FORM (Buchungsformular) ===== */
form .form-navigation .btn,
form button[type=submit]{background:#15406e;color:#fff;border:none;border-radius:10px;padding:14px 28px;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(21,64,110,.25);transition:transform .08s ease,box-shadow .2s ease;}
form button[type=submit]:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(21,64,110,.32);}
.frame-type-form_formframework input[type=text],.frame-type-form_formframework input[type=email],.frame-type-form_formframework input[type=tel],.frame-type-form_formframework input[type=date],.frame-type-form_formframework input[type=number],.frame-type-form_formframework select,.frame-type-form_formframework textarea{width:100%;padding:11px 13px;border:1px solid #cfd8e3;border-radius:9px;font-size:15px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease;box-sizing:border-box;}
.frame-type-form_formframework select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315406e' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px;}
.frame-type-form_formframework input:focus,.frame-type-form_formframework select:focus,.frame-type-form_formframework textarea:focus{outline:none;border-color:#15406e;box-shadow:0 0 0 3px rgba(21,64,110,.12);}
.frame-type-form_formframework label{font-weight:600;color:#21405f;display:block;margin-bottom:5px;font-size:14px;}
.frame-type-form_formframework .form-group{margin-bottom:16px;}
.frame-type-form_formframework fieldset{border:1px dashed #d8c3ad;border-radius:12px;padding:16px 18px 4px;margin:8px 0 18px;background:#fffdfb;}
.frame-type-form_formframework legend{font-weight:800;color:#15406e;font-size:14px;padding:0 8px;}
.frame-type-form_formframework input[type=checkbox]{width:auto;margin-right:8px;transform:scale(1.15);}
.frame-type-form_formframework .checkbox label,.frame-type-form_formframework .radio label{font-weight:400;color:#444;}
