/* ====== CSS zu index.html (Radiologie Lippstadt und Mammographie Lippstadt) ====== 
   ====== weitere Dateien: variables.css, views.css ====== */

* { box-sizing:border-box; margin:0; padding:0; }
html { overflow-y: scroll; }
html, body, .page-wrapper { height:100%; }

body {
  display:flex; flex-direction:column; min-height:100vh;
  font-family: Helvetica, Arial, sans-serif;
}
body.variables { margin:0; padding:0; }

h1, h2 { color: var(--headline); }
h4 {
  text-transform: uppercase;
  color: var(--highlight-1);
  font-size: 16px;
  line-height: 1.25rem;
  letter-spacing: .05em;
}

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

/* Tab-Radios unsichtbar (müssen im HTML VOR Header & Views stehen) */
input[type="radio"][name="tab"]{
  position:absolute; left:-9999px; opacity:0; pointer-events:none;
}

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 1000; }

/* Noticebar */
.notice-bar {
  background: var(--highlight-1);
  color: var(--white);
  text-align:center; font-weight:600;
  padding:12px 16px; font-size: 14px;
  border-bottom: 4px solid var(--black);
}

/* Midbar */
.midbar-back { background: var(--highlight-2); width:100%; }
.midbar {
  max-width:var(--container); margin:auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 16px;
}
.branding { display:flex; align-items:center; gap:12px; }
.logo { width:48px; height:auto; }
.logo-mammo { width:180px; height:auto; }
.office-name h1 { margin:0; font-size:1rem; font-weight:700; letter-spacing:.02em; }
.office-name p  { margin:2px 0 0; font-size:.85rem; font-weight:600; }

.desktop-only{ display:inline-flex;}
.mobile-only { display:none; }

/* Burger-Checkbox verstecken */
#nav-toggle{ position:absolute; left:-9999px; opacity:0; }

/* Burger-Button */
.burger-btn {
  flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 36px; padding: 6px 8px;
  background: var(--highlight-1); color: var(--white);
  border-radius: 5px; box-shadow: var(--shadow-1);
  cursor: pointer;
}
.burger-btn span { display:block; height:2px; width:100%; background: var(--white); border-radius:2px; }
.burger-btn span{ transition:transform .25s ease, opacity .2s ease, background .2s ease; transform-origin:center; }

/* Tabs-Zeile */
.tabs-back{
  background: var(--white); width:100%;
  border-top:1px solid var(--border-soft);
  border-bottom:1px solid var(--border-soft);
  box-shadow: var(--shadow-3);
}
.tabs-inner{
  max-width:var(--container); margin:auto;
  display:flex; justify-content:center; align-items:center;
  gap:18px; padding:10px 16px; flex-wrap:wrap;
}

/* Tabs Desktop-Look */
.tabs-inner label,
.tabs-inner a{
  cursor:pointer;
  padding:8px 12px;
  background: var(--highlight-2);
  border-radius:5px;
  color: var(--brand-tab-text);
  font-weight:700; font-size:12px;
  text-decoration:none; transition: all .2s ease;
}
.tabs-inner label:hover,
.tabs-inner a:hover{ background: var(--highlight-4); }

/* Termin-Link nur mobil zeigen */
.tabs-inner a:last-child { display:none; }
@media (max-width: 768px) {
  .tabs-inner a:last-child {
    display:inline-flex; align-items:center; justify-content:center;
    padding:20px; border-radius:5px; text-decoration:none;
    background: var(--highlight-1); color:var(--white); font-weight:700;
    transition: background .2s ease;
  }
  .tabs-inner a:last-child::before { background:none; }
  .tabs-inner a:last-child:hover { background: var(--highlight-1-hover); color:var(--white); }
}

/* ===== Views – Basiskonfig (ohne :checked-Logik) ===== */
.views { flex:1; margin:0 auto; padding:20px; padding-top:0; background: var(--back-sub); }
.view-wrapper { max-width:var(--container); margin:auto; padding:20px; }
.views > div { display:none; scroll-margin-top: 80px; }

/* HOME-Speziallayout */
#view-home { padding-top:0; }
#view-home .text-image-grid{ grid-template-columns: 1fr 1.6fr; gap:20px; padding:0; align-items:start; }
#view-home .text-col{ padding:20px; margin-top:auto; margin-bottom:auto; }
#view-home .image-col{ padding:0; margin:0; }
#view-home .image-col img{ display:block; width:100%; height:100%; object-fit:cover; margin:0; }
@media (max-width:1100px){ #view-home .text-image-grid{ grid-template-columns:1fr 1.35fr; } }
@media (max-width:768px){
  #view-home .text-image-grid{ grid-template-columns:1fr; }
  #view-home .text-col{ order:1; padding:20px; text-align:center; }
  #view-home .image-col{ order:2; }
  #view-home .image-col img{ width:100%; height:auto; object-fit:cover; }
}

/* ===== Grids & Cards ===== */
.two-col{
  display:grid; grid-template-columns:2.5fr 1fr; gap:20px;
  max-width:var(--container); margin:0 auto; padding:20px;
}
.sidebar { background:none; padding:16px; }
.sidebar h4 { padding-bottom:16px; }
.sidebar .card { background:var(--white); border-radius:12px; box-shadow: var(--shadow-2); }
.sidebar-cards { display:grid; grid-template-columns:1fr; gap:16px; }
@media (max-width:1100px){ .two-col{ grid-template-columns:1fr; } .sidebar-cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .sidebar-cards{ grid-template-columns:1fr; } }

.card-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:24px; max-width:var(--container); margin:0 auto; padding-top:20px;
}
@media (max-width:1100px){ .card-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .card-grid{ grid-template-columns:1fr; } }

.card{
  background: var(--white);
  border-radius:8px;
  box-shadow: var(--shadow-4);
  overflow:hidden;
}
.card-img { width:100%; height:200px; object-fit:cover; }
.card-content { padding:16px; }
.card-title { font-size:16px; font-weight:600; margin:0 0 16px; color: var(--headline); line-height:1.5rem; }
.card-title:hover{ color: var(--highlight-1); }
.card-text { color: var(--text); font-size: 1ren; line-height:1.5rem; margin-top:.75rem; }

/* ===== Text-Bild-Block ===== */
.text-image-grid{
  display:grid; grid-template-columns:1fr 2fr; gap:20px; align-items:center;
  max-width:var(--container); margin:0 auto; padding:20px;
}
.text-col h2, h2{ color: var(--headline); line-height:2.5rem; font-weight:700; }
#view-home .text-col h2 { color: var(--headline); font-size:2.25rem; line-height:2.5rem; font-weight:700; }
.text-col p, .content p{ margin-top:20px; margin-bottom:20px; color: var(--text); line-height:1.5rem; }
.image-col img{ width:100%; object-fit:cover; }
@media (max-width:768px){ .text-image-grid{ grid-template-columns:1fr; } .image-col img{ height:240px; } }

/* ===== Footer ===== */
.site-footer { background: var(--highlight-2); padding:2rem 1rem; font-size:.9rem; color: var(--footer-menu-text); }
.footer-inner{
  display:grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: "address hours links";
  gap:24px; max-width: var(--container); margin:0 auto; padding:20px;
}
.footer-inner > .footer-col:nth-of-type(1){ grid-area: address; }
.footer-inner > .footer-col:nth-of-type(2){ grid-area: hours; }
.footer-inner > .footer-col:nth-of-type(3){ grid-area: links; }
@media (max-width:1199px){
  .footer-inner{ grid-template-columns:1fr 1fr; grid-template-areas:"address address" "hours links"; }
}
@media (max-width:768px){
  .footer-inner{ grid-template-columns:1fr; grid-template-areas:"address" "hours" "links"; }
}
.footer-col { min-width:0; }
.footer-logo { height:40px; width:auto; }
.address { line-height:1.4; text-transform:uppercase; font-weight:600; color: var(--headline); }
.contact p { margin:0.2rem 0; text-transform:uppercase; color: var(--highlight-1); font-weight:600; }
.contact a { text-decoration:none; text-transform:uppercase; color: var(--highlight-1); font-weight:600; }
.contact a:hover { text-decoration:underline; }
.footer-col h4{ text-transform:uppercase; color: var(--highlight-1); font-size:16px; line-height:1.25rem; letter-spacing:.05em; }
.opening-hours{ border-collapse:collapse; width:auto; table-layout:fixed; margin-top:.3rem; }
.opening-hours td{ padding:.3rem .6rem .3rem 0; vertical-align:top; font-weight:600; }
.opening-hours td:first-child{ width:130px; text-align:left; white-space:nowrap; }
.opening-hours td:last-child{ text-align:left; white-space:nowrap; }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin:.6rem 0; }
.footer-links label{ cursor:pointer; color: var(--footer-menu-text); font-weight:700; }
.footer-links label:hover{ color: var(--footer-menu-text); text-decoration:none; }
.footer-slider{ margin-top:2rem; overflow:hidden; position:relative; grid-column:1 / -1; }
.footer-slider:hover .slides{ animation-play-state: paused; }
.footer-slider .slides{ display:flex; gap:1rem; animation: slideFooter 15s linear infinite; }
.footer-slider .slide{ flex:0 0 auto; }
.footer-slider img{ height:130px; width:auto; }
@keyframes slideFooter{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.site-footer iframe{ width:100%; border:0; margin-top:2rem; border-radius:5px; }

/* ===== Mobile-Menü Verhalten (kein JS nötig) ===== */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }
  .burger-btn   { display: flex !important; }

  .tabs-back .tabs-inner {
    display: none !important;
    flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px;
  }
  .tabs-inner label,
  .tabs-inner a{
    position: relative; padding-left: 16px; border:0; border-radius:0;
    background:none; color: var(--text);
    transition: background .2s ease, color .2s ease;
    width:100%; text-align:left;
  }
  .tabs-inner label::before,
  .tabs-inner a::before{
    content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
    background: var(--text); border-radius:0;
    transform: scaleY(0); transform-origin: top;
    transition: transform .2s ease, background .2s ease; pointer-events:none;
  }
  .tabs-inner label:hover,
  .tabs-inner a:hover{ background: var(--hover-surface); color: var(--text-dark); border-radius:0; }
  .tabs-inner label:hover::before,
  .tabs-inner a:hover::before{ transform: scaleY(1); }

  /* öffnen durch #nav-toggle */
  #nav-toggle:checked ~ .tabs-back .tabs-inner { display:flex !important; }

  /* optionales visuelles Auto-Close (Tabs klicken) – Logik in views.css */
}

/* ===== Buttons ===== */
.btn-termin{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 14px; border-radius:5px; text-decoration:none;
  background: var(--highlight-1); color:var(--white); font-weight:700;
  transition: background .2s ease;
}
.btn-termin:hover{ background:var(--highlight-3); }

.button-group{
  display:grid; grid-template-columns: repeat(2, auto); gap:12px;
}
.button-group a, .button-group label{ padding:12px 20px; border-radius:6px; text-align:center; }

/* Mittel: untereinander, gleiche Breite */
@media (max-width:1199px){
  .button-group{ grid-template-columns:1fr; justify-items:start; }
  .button-group a, .button-group label{ width:100%; min-width:max-content; }
}
/* Klein: volle Breite */
@media (max-width:900px){
  .button-group{ justify-items:stretch; }
  .button-group a, .button-group label{ width:100%; min-width:0; }
}

.btn-standard{
  display:inline-flex; align-items:center; justify-content:center;
  padding:20px; border-radius:5px; text-decoration:none;
  background: var(--highlight-1); color:var(--white); font-weight:700;
  transition: background .2s ease;
}
.btn-negative{
  display:inline-flex; align-items:center; justify-content:center;
  padding:20px; border-radius:5px; text-decoration:none;
  background: var(--white); color:var(--highlight-1); font-weight:700;
  transition: background .2s ease;
}
.btn-standard:hover, .btn-termin:hover{ background: var(--highlight-1-hover); }
.btn-negative:hover{ background: var(--white-hover); }
