/* ============================================================
   Augustinerkirche Wien — start-v2.css
   Alternative Startseite (index-v2.html, Test-Design, Fassung 3):
   grosses Titelbild (Diashow aus der Verwaltung), dunkles Band mit der
   goldenen Strichzeichnung der Kirche und drei Infos, sechs Bild-Bereiche,
   Aktuelles, Häufig gesucht und alle Seiten zum Aufklappen.
   Farben und Schrift aus style.css; hell und dunkel.
   ============================================================ */

.v3{--v3-navy:#10192e;--v3-gold:#d8b96e}
.v3-in{max-width:var(--max);margin:0 auto}

/* ── Titelbild: links der Titel auf Marine, rechts die Fotos der Diashow im Hochformat ── */
.v3-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,52%);min-height:clamp(30rem,calc(100vh - var(--nav-h)),54rem);min-height:clamp(30rem,calc(100svh - var(--nav-h)),54rem);background:var(--v3-navy);color:#fff;overflow:hidden;isolation:isolate}
.v3-hero-img{position:relative;grid-column:2;grid-row:1;min-height:100%}
.v3-hero-in{grid-column:1;grid-row:1;align-self:center;max-width:40rem;padding:clamp(2rem,4vh,3.5rem) clamp(1.5rem,4vw,3.5rem) clamp(2.4rem,5vw,4rem) var(--edge)}
.v3-eyebrow{margin-bottom:.5rem;font-size:1.05rem;font-weight:600;color:var(--v3-gold)}
.v3-h{font-family:var(--serif);font-weight:500;font-size:clamp(2.6rem,5.2vw,4.4rem);line-height:1.02;letter-spacing:-.015em;text-wrap:balance}
.v3-sub{max-width:32rem;margin-top:.9rem;font-size:clamp(1.02rem,1.4vw,1.15rem);line-height:1.55;color:rgba(255,255,255,.86)}
.v3-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.6rem}
.v3-hero .hero-ctrl{left:auto;right:1rem;top:1rem;bottom:auto}

/* ── Drei Infos in der linken Spalte unter den Knöpfen: immer im Blick, auch im Vollbild ── */
.v3-today-grid{display:flex;flex-direction:column;max-width:30rem;margin-top:clamp(1.6rem,3.5vh,2.4rem);border-top:1px solid rgba(216,185,110,.35)}
.v3-info{display:flex;align-items:center;gap:1rem;padding:.85rem 0;border-bottom:1px solid rgba(216,185,110,.2);color:#fff;text-decoration:none}
.v3-info-ico{flex:none;display:grid;place-items:center;width:2.7rem;height:2.7rem;border:1px solid rgba(216,185,110,.6);border-radius:50%;transition:background .25s,border-color .25s}
.v3-info-ico svg{width:1.35rem;height:1.35rem;fill:none;stroke:var(--v3-gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .25s}
.v3-info-txt{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.v3-info-k{font-size:.88rem;font-weight:600;color:var(--v3-gold)}
/* Wann: Heute, Morgen, In 3 Tagen (js/seiten/start-v2.js) */
/* Wann: Heute, Morgen, In 3 Tagen (js/seiten/start-v2.js), als goldene Kapitälchen hinter der Überschrift */
.v3-info-when{margin-left:.5rem;padding-left:.55rem;border-left:1px solid rgba(216,185,110,.45);font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#fff}
.v3-info-when.jetzt{color:var(--v3-gold)}
.v3-info-t{font-family:var(--serif);font-size:clamp(1.08rem,1.3vw,1.25rem);font-weight:500;line-height:1.2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;transition:color .25s}
.v3-info-s{font-size:.92rem;line-height:1.35;color:rgba(255,255,255,.72)}
.v3-info-arrow{flex:none;margin-left:auto;opacity:.45;transform:translateX(-4px);transition:opacity .25s,transform .25s}
.v3-info-arrow svg{width:1.2rem;height:1.2rem;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.v3-info:hover .v3-info-ico,.v3-info:focus-visible .v3-info-ico{background:var(--v3-gold);border-color:var(--v3-gold)}
.v3-info:hover .v3-info-ico svg,.v3-info:focus-visible .v3-info-ico svg{stroke:var(--v3-navy)}
.v3-info:hover .v3-info-arrow,.v3-info:focus-visible .v3-info-arrow{opacity:1;transform:none}
.v3-info:hover .v3-info-t{color:var(--v3-gold)}
.v3-info:focus-visible{outline:2px solid var(--v3-gold);outline-offset:2px}

/* ── Abschnitte ── */
.v3-sec{padding:clamp(2.6rem,5vw,4.2rem) var(--edge)}
.v3-head{margin-bottom:clamp(1.3rem,2.5vw,2rem)}
.v3-head-row{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.v3-title{font-family:var(--serif);font-weight:500;font-size:clamp(2rem,3.4vw,2.7rem);line-height:1.1;color:var(--heading)}
.v3-lead{margin-top:.3rem;font-size:1.05rem;color:var(--text-mid)}
.v3-more{font-weight:600;color:var(--gold-text);text-decoration:none}
.v3-more::after{content:" →"}
.v3-more:hover{text-decoration:underline;text-underline-offset:.25em}

/* ── Sechs Bereiche ── */
.v3-ways{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.2rem,2.4vw,2rem)}
.v3-way{display:flex;flex-direction:column}
.v3-way-img{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--bg-warm)}
.v3-way-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.v3-way:hover .v3-way-img img{transform:scale(1.04)}
.v3-way h3{margin:.9rem 0 .4rem;padding-bottom:.5rem;border-bottom:2px solid var(--gold);font-family:var(--serif);font-size:clamp(1.3rem,1.9vw,1.55rem);font-weight:500;line-height:1.2}
.v3-way h3 a{color:var(--heading);text-decoration:none}
.v3-way h3 a:hover{color:var(--gold)}
.v3-way ul{list-style:none;display:flex;flex-wrap:wrap;gap:.2rem 1.2rem}
.v3-way li a{display:inline-block;padding:.2rem 0;font-size:1rem;color:var(--text);text-decoration:none}
.v3-way li a::before{content:"› ";color:var(--gold)}
.v3-way li a:hover,.v3-way li a:focus-visible{color:var(--gold);text-decoration:underline;text-underline-offset:.2em}

/* ── Aktuelles ── */
.v3-news{background:var(--bg-soft);border-top:1px solid var(--line)}

/* ── Ende: Häufig gesucht und alle Seiten, auf Marine; rechts steht die goldene Strichzeichnung der Kirche
   (als Maske, damit die Linien die Goldfarbe annehmen) ── */
.v3-end{position:relative;padding:clamp(2.6rem,5vw,4rem) var(--edge) clamp(2.6rem,5vw,4rem);background:var(--v3-navy);color:#fff;overflow:hidden;isolation:isolate;
  --heading:#f0ead9;--text:#e3e0d6;--line:rgba(255,255,255,.18);--gold:#d8b96e;--gold-text:#e0c47f;--gold-pale:rgba(216,185,110,.14)}
.v3-end::before{content:"";position:absolute;z-index:-1;right:calc(var(--edge) - 4rem);bottom:0;height:min(100%,26rem);aspect-ratio:777/556;pointer-events:none;background:#d8b96e;opacity:.42;
  -webkit-mask:url('../assets/img/kirche/zeichnung-augustinerkirche-breit.webp') right bottom/contain no-repeat,linear-gradient(to right,transparent 0%,#000 40%);-webkit-mask-composite:source-in;
  mask:url('../assets/img/kirche/zeichnung-augustinerkirche-breit.webp') right bottom/contain no-repeat,linear-gradient(to right,transparent 0%,#000 40%);mask-composite:intersect}
.v3-end .v3-in{position:relative}
.v3-end-h{margin-bottom:.9rem;font-family:var(--serif);font-size:clamp(1.5rem,2.4vw,1.9rem);font-weight:500;color:var(--heading)}
.v3-end-text{max-width:30rem;margin:-.4rem 0 1.1rem;color:rgba(255,255,255,.75)}
.v3-chips{display:flex;flex-wrap:wrap;gap:.5rem;max-width:44rem}
.v3-chips a{padding:.45rem .95rem;border:1px solid var(--line);color:var(--heading);font-size:.98rem;text-decoration:none;transition:border-color .2s,background .2s}
.v3-chips a:hover,.v3-chips a:focus-visible{border-color:var(--gold);background:var(--gold-pale)}
.v3-all{max-width:46rem;margin-top:1.6rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.v3-all>summary{display:flex;align-items:center;gap:.6rem;min-height:3rem;cursor:pointer;list-style:none;font-weight:600;color:var(--heading)}
.v3-all>summary::-webkit-details-marker{display:none}
.v3-all[open]{max-width:none;background:rgba(16,25,46,.9)}
.v3-all>summary::after{content:"";width:.5rem;height:.5rem;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:translateY(-.15rem) rotate(45deg);transition:transform .2s}
.v3-all[open]>summary::after{transform:translateY(.1rem) rotate(-135deg)}
.v3-all>summary:hover{color:var(--gold)}
.v3-all-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.4rem 2rem;padding:.6rem 0 1.6rem}
.v3-all h3{margin:.9rem 0 .35rem;font-size:.95rem;font-weight:600;color:var(--gold-text)}
.v3-all h3:first-child{margin-top:0}
.v3-all a{display:block;padding:.18rem 0;font-size:.95rem;line-height:1.35;color:var(--text);text-decoration:none}
.v3-all a:hover,.v3-all a:focus-visible{color:var(--gold);text-decoration:underline;text-underline-offset:.2em}

@media(max-width:1000px){
  .v3-ways{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v3-all-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .v3-hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .v3-hero-img{grid-column:1;grid-row:1;min-height:0;aspect-ratio:4/5;max-height:72svh}
  .v3-hero-in{grid-column:1;grid-row:2;max-width:none;padding:1.8rem var(--edge) 2rem}
  .v3-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Handy: kompakt. Alle Seiten stehen schon im Menü (☰), die Zeichnung nur als schmaler Streifen unten */
  .v3-end{padding-top:2rem;padding-bottom:clamp(6.5rem,30vw,8.5rem)}
  .v3-end::before{right:-2rem;height:auto;width:min(100%,24rem);opacity:.35}
  .v3-end-h{margin-bottom:.6rem}
  .v3-end-text{margin-bottom:.9rem;font-size:.95rem}
  .v3-nur-breit,.v3-all{display:none}
  .v3-chips{gap:.4rem}
  .v3-chips a{padding:.32rem .7rem;font-size:.92rem}
}
@media(max-width:520px){
  .v3-ways{grid-template-columns:minmax(0,1fr)}
  .v3-way-img{aspect-ratio:16/9}
  .v3-all-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.v3-way-img img{transition:none}.v3-way:hover .v3-way-img img{transform:none}}
/* Niedrige Bildschirme (Laptop): Titel und Infos kompakter, damit alles ohne Scrollen sichtbar bleibt */
@media(min-width:761px) and (max-height:860px){
  .v3-h{font-size:clamp(2.4rem,4.4vw,3.4rem)}
  .v3-sub{margin-top:.6rem}
  .v3-actions{margin-top:1.1rem}
  .v3-today-grid{margin-top:1.2rem}
  .v3-info{padding:.55rem 0}
  .v3-info-ico{width:2.3rem;height:2.3rem}
  .v3-info-ico svg{width:1.15rem;height:1.15rem}
}

/* ══ Bewegung (nur ohne "reduzierte Bewegung") ══
   Titelbild: Text, Knöpfe und die drei Infos steigen nacheinander ein, das Foto blendet weich ein
   und zoomt langsam heraus. Beim Scrollen kommen die Karten der Bereiche und die Meldungen
   nacheinander (die Abschnitte selbst bewegt js/gemeinsam/main.js). Unten zeichnet sich die Kirche von unten
   nach oben, sobald der Bereich ins Bild kommt (js/seiten/start-v2.js setzt .gezeichnet). */
@media (prefers-reduced-motion:no-preference){
  .v3-hero-in>*{animation:rise .9s var(--ease) backwards}
  .v3-hero-in>:nth-child(1){animation-delay:.05s}
  .v3-hero-in>:nth-child(2){animation-delay:.15s}
  .v3-hero-in>:nth-child(3){animation-delay:.28s}
  .v3-hero-in>:nth-child(4){animation-delay:.4s}
  .v3-hero-in>.v3-today-grid{animation:none}
  .v3-today-grid>.v3-info{animation:v3-slide .8s var(--ease) backwards}
  .v3-today-grid>.v3-info:nth-child(1){animation-delay:.55s}
  .v3-today-grid>.v3-info:nth-child(2){animation-delay:.67s}
  .v3-today-grid>.v3-info:nth-child(3){animation-delay:.79s}
  .v3-hero-img{animation:fade-in 1.1s ease-out backwards}
  .v3-hero .hero-slide{transform:scale(1.07);transition:opacity 1.3s ease,transform 10s ease-out}
  .v3-hero .hero-slide.is-on{transform:scale(1)}

  .v3-ways.in>*,.v3 .news-grid.in>*{animation:rise .8s var(--ease) backwards}
  .v3-ways.in>:nth-child(2),.v3 .news-grid.in>:nth-child(2){animation-delay:.08s}
  .v3-ways.in>:nth-child(3),.v3 .news-grid.in>:nth-child(3){animation-delay:.16s}
  .v3-ways.in>:nth-child(4),.v3 .news-grid.in>:nth-child(4){animation-delay:.24s}
  .v3-ways.in>:nth-child(5){animation-delay:.32s}
  .v3-ways.in>:nth-child(6){animation-delay:.4s}

  /* Goldene Linie unter den Bereichs-Titeln waechst beim Darueberfahren */
  .v3-way h3{border-bottom:0;padding-bottom:calc(.5rem + 2px);background:linear-gradient(var(--gold),var(--gold)) left bottom/30% 2px no-repeat,linear-gradient(var(--line),var(--line)) left bottom/100% 2px no-repeat;transition:background-size .5s var(--ease)}
  .v3-way:hover h3,.v3-way:focus-within h3{background-size:100% 2px,100% 2px}

  .v3-end.zeichnen::before{clip-path:inset(100% 0 0 0);transition:clip-path 2.4s cubic-bezier(.3,.6,.2,1)}
  .v3-end.zeichnen.gezeichnet::before{clip-path:inset(0 0 0 0)}
}
@keyframes v3-slide{from{opacity:0;transform:translateX(-18px)}}

/* ══ Heute in der Augustinerkirche (js/seiten/start-v2.js) ══ */
.v3-heute{padding:clamp(2.2rem,4.5vw,3.4rem) var(--edge);background:var(--bg-soft);border-bottom:1px solid var(--line)}
/* Breit: Überschrift links, Karten rechts über die ganze Breite (wenige Termine wirken so nicht verloren) */
.v3-heute-in{display:grid;grid-template-columns:minmax(14rem,19rem) minmax(0,1fr);gap:clamp(1.5rem,3.5vw,3rem);align-items:start}
.v3-heute-head{display:flex;flex-direction:column;align-items:flex-start}
.v3-heute-title{font-family:var(--serif);font-weight:500;font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.15;color:var(--heading)}
.v3-heute-date{margin-top:.35rem;font-size:1rem;color:var(--gold-text);font-weight:600}
/* Tagesbezeichnung und Heilige des Tages (js/seiten/start-v2.js) */
.v3-heute-heilige{margin-top:.2rem;font-size:.95rem;font-style:italic;color:var(--text-mid)}
.v3-heute-btn{margin-top:1.2rem}
/* Wie eine gedruckte Gottesdienstordnung: keine Kästen, nur eine feine Linie über jedem Termin */
.v3-heute-list{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(13.5rem,1fr));gap:1.6rem clamp(1.5rem,3vw,2.6rem)}
.v3-heute-list>li>a,.v3-heute-list>li>div{display:flex;flex-direction:column;height:100%;padding-top:1rem;border-top:1px solid var(--gold);color:inherit;text-decoration:none}
.v3-h-top{display:flex;align-items:baseline;justify-content:space-between;gap:.8rem;margin-bottom:.6rem}
.v3-h-zeit{font-family:var(--serif);font-size:2rem;font-weight:500;line-height:1;color:var(--heading);font-variant-numeric:tabular-nums}
.v3-h-st{font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--text-mid);white-space:nowrap}
.v3-h-st.next,.v3-h-st.jetzt{color:var(--gold-text)}
.v3-h-art{font-size:.76rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--gold-text)}
.v3-h-titel{margin-top:.2rem;font-family:var(--serif);font-weight:500;font-size:1.25rem;line-height:1.25;color:var(--heading);transition:color .2s}
.v3-h-sub{margin-top:.3rem;font-size:.92rem;line-height:1.4;color:var(--text-mid)}
.v3-h-ort{display:flex;align-items:center;gap:.3rem;margin-top:.35rem;font-size:.88rem;color:var(--text-mid)}
.v3-h-ort svg{flex:none;width:.9rem;height:.9rem;fill:none;stroke:var(--gold-text);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v3-h-mehr{margin-top:auto;padding-top:.75rem;font-size:.9rem;font-weight:600;color:var(--gold-text)}
.v3-h-mehr::after{content:" →"}
.v3-heute-list>li>a:hover .v3-h-titel,.v3-heute-list>li>a:focus-visible .v3-h-titel{color:var(--gold-text)}
.v3-heute-list>li>a:hover .v3-h-mehr{text-decoration:underline;text-underline-offset:.25em}
/* Hochamt: kräftigere Linie; läuft gerade: goldene */
.v3-h-item.g-hochamt>a,.v3-h-item.g-hochamt>div{border-top:2px solid var(--heading);padding-top:calc(1rem - 1px)}
.v3-h-item.laeuft>a,.v3-h-item.laeuft>div{border-top:2px solid var(--gold);padding-top:calc(1rem - 1px)}
.v3-h-item.vorbei{opacity:.5}
.v3-heute-empty{color:var(--text-mid)}
@media (max-width:860px){
  .v3-heute-in{grid-template-columns:1fr;gap:1.2rem}
  .v3-heute-head{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:1rem}
  .v3-heute-head .v3-eyebrow,.v3-heute-title,.v3-heute-heilige{flex:1 0 100%}
  .v3-heute-date{flex:1 1 0;min-width:0}
  .v3-heute-btn{margin:.35rem 0 0 auto;padding:.45rem .9rem;font-size:.9rem;white-space:nowrap}
}

/* ══ Kirchenmusik erleben: Foto links, die nächsten Hochämter rechts auf Marine ══ */
.v3-musik{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);background:var(--v3-navy);color:#fff}
.v3-musik-img{position:relative;min-height:22rem;overflow:hidden}
.v3-musik-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.v3-musik-in{padding:clamp(2.4rem,5vw,4rem) var(--edge) clamp(2.4rem,5vw,4rem) clamp(1.8rem,4vw,3.5rem);
  --heading:#f0ead9;--line:rgba(255,255,255,.16);--blue:rgba(216,185,110,.6);--gold-text:#e0c47f;--text-light:rgba(255,255,255,.7);--gold:#d8b96e}
.v3-musik .v3-title{color:#fff}
.v3-musik-text{max-width:36rem;margin:.6rem 0 1.2rem;color:rgba(255,255,255,.8)}
.v3-hs .hs-item{padding:1rem 0;gap:1.2rem}
.v3-hs .hs-day{font-size:2.4rem;color:#fff}
.v3-hs .hs-mon{color:#fff}
.v3-hs .hs-piece{font-size:1.3rem;color:#fff}
.v3-hs .hs-item:hover .hs-piece{color:var(--v3-gold)}
.v3-musik .v3-actions{margin-top:1.4rem}

/* ══ Unterstützen ══ */
.v3-helfen{background:var(--gold-pale)}
.v3-helfen-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem clamp(2rem,5vw,4rem);align-items:center}
.v3-eyebrow-d{color:var(--gold-text)}
.v3-helfen-wege{display:flex;flex-direction:column;gap:.6rem}
.v3-weg{display:flex;flex-direction:column;gap:.1rem;padding:1rem 1.2rem 1rem 1.3rem;border:1px solid var(--line);border-left:3px solid var(--gold);background:var(--surface);color:inherit;text-decoration:none;position:relative;transition:border-color .2s,transform .2s}
.v3-weg::after{content:"→";position:absolute;right:1.1rem;top:50%;transform:translateY(-50%);color:var(--gold);font-size:1.2rem;transition:right .2s}
.v3-weg b{font-family:var(--serif);font-size:1.2rem;font-weight:600;color:var(--heading)}
.v3-weg span{font-size:.95rem;color:var(--text-mid)}
.v3-weg:hover,.v3-weg:focus-visible{border-color:var(--gold)}
.v3-weg:hover::after{right:.8rem}

@media(max-width:900px){
  .v3-musik{grid-template-columns:minmax(0,1fr)}
  .v3-musik-img{min-height:0;aspect-ratio:16/9}
  .v3-musik-in{padding:2rem var(--edge)}
  .v3-helfen-in{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:no-preference){
  .v3-heute-list>li{animation:rise .7s var(--ease) backwards}
  .v3-heute-list>li:nth-child(2){animation-delay:.07s}
  .v3-heute-list>li:nth-child(3){animation-delay:.14s}
  .v3-heute-list>li:nth-child(4){animation-delay:.21s}
  .v3-heute-list>li:nth-child(n+5){animation-delay:.28s}
}
