/* ==========================================================
TSZ MITTELSACHSEN – Gestaltung der Startseite

HIER KANNST DU EINFACHE ÄNDERUNGEN VORNEHMEN:
- Vereinsfarben: siehe Abschnitt „Farben“ direkt darunter.
- Schriftgrößen, Abstände und Layout: in den passenden Abschnitten.
- Handy-Ansicht: ganz unten bei den Media Queries.

Nach Änderungen bitte die Versionszahl in index.html erhöhen:
style.css?v=2 wird dann zum Beispiel style.css?v=3.
========================================================== */

/* FARBEN UND GRUNDEINSTELLUNGEN: Hier kannst du Rot, Schwarz und helle Flächen ändern. */

:root
{
  --red: #c82032;
  --red-dark: #a71929;
  --ink: #171719;
  --ink-soft: #29292d;
  --paper: #fff;
  --mist: #f4f3f1;
  --muted: #68686d;
  --line: #e4e2df;
  --content: 1160px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 5px;
  --shadow: 0 18px 50px rgba(20, 20, 24, .12);
}

*
{
  box-sizing: border-box;
}

html
{
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body
{
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("img/Welle.png");
  background-position: center top;
  background-size: 90% auto;
  background-repeat: repeat-y;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a
{
  color: inherit;
}

a:focus-visible, button:focus-visible
{
  outline: 3px solid #f1a1aa;
  outline-offset: 4px;
}

.wrap
{
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link
{
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: white;
  color: var(--ink);
}

.skip-link:focus
{
  top: 1rem;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* KOPFBEREICH UND HAUPTNAVIGATION */

.site-header
{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}

.header-inner
{
  width: min(1400px, calc(100% - 2 * var(--gutter)));
  min-height: 86px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand
{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark
{
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.08em;
  transform: skew(-5deg);
}

.brand-name
{
  display: grid;
  font-size: .83rem;
  line-height: 1.3;
  letter-spacing: .02em;
}

.brand-name strong
{
  font-size: 1rem;
}

.main-nav
{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.45rem, 1.1vw, 1.2rem);
}

.main-nav a
{
  padding: .55rem .1rem;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}

.main-nav a:hover, .main-nav a.active
{
  color: var(--red);
  border-color: var(--red);
}

.menu-toggle
{
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: .6rem;
  cursor: pointer;
}

.menu-icon
{
  display: inline-grid;
  gap: 4px;
  width: 22px;
  margin-right: .4rem;
  vertical-align: middle;
}

.menu-icon i
{
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ALLGEMEINE ABSCHNITTE UND VEREINSVORSTELLUNG */

.section
{
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-kicker
{
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.intro-grid
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-top: 1rem;
}

h2
{
  margin: .4rem 0 .8rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

h2 span
{
  color: var(--red);
}

.intro-text
{
  position: relative;
  top: -85px;
  max-width: 590px;
}

.intro-text > p:first-child
{
  margin-top: 0;
  font-size: 1.2rem;
  line-height: 1.75;
}

.draft-note
{
  color: var(--muted);
  font-size: .82rem;
}

.text-link
{
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  margin-top: .8rem;
  color: var(--red);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
}

.text-link span
{
  transition: transform .18s;
}

.text-link:hover span
{
  transform: translateX(4px);
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ÜBERSICHT DER TANZGRUPPEN */

.groups-section
{
  background: var(--mist);
}

.section-heading
{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.1rem;
}

.section-heading h2
{
  margin-bottom: 0;
}

.group-grid
{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.group-card
{
  min-width: 0;
  background: white;
  text-decoration: none;
  box-shadow: 0 4px 22px rgba(0,0,0,.035);
  transition: transform .2s, box-shadow .2s;
}

.group-card:hover
{
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-visual
{
  position: relative;
  min-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 1.1rem;
}

.visual-red
{
  background: linear-gradient(135deg, #c82032, #7e1323);
  color: white;
}

.visual-dark
{
  background: linear-gradient(135deg, #202024, #555158);
  color: white;
}

.visual-light
{
  background: linear-gradient(135deg, #e8e4e1, #b8afb0);
  color: #252326;
}

.visual-word
{
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .85;
  letter-spacing: -.08em;
  font-weight: 900;
  opacity: .88;
}

.visual-number
{
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .75rem;
  font-weight: 800;
  opacity: .7;
}

.card-copy
{
  position: relative;
  padding: 1.35rem 1.4rem 1.65rem;
}

.card-tag
{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  color: var(--red);
  font-weight: 800;
}

.card-copy h3, .news-body h3
{
  margin: .45rem 2rem .45rem 0;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.card-copy p, .news-body p
{
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 0;
}

.card-arrow
{
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  font-size: 1.2rem;
  color: var(--red);
}

.group-note
{
  margin-top: 1.2rem;
}

.mobile-link
{
  display: none;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* AKTUELLES UND TERMINE */

#news-title span
{
  color: white;
}

.news-section
{
  background: var(--red);
}

.news-grid
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.news-card
{
  display: grid;
  grid-template-columns: minmax(110px, 30%) 1fr;
  border: 1px solid var(--line);
  min-height: 255px;
  background: white;
}

.news-date
{
  background: var(--mist);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

.news-date span
{
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.news-date strong
{
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  line-height: 1.1;
}

.news-date-dark
{
  background: var(--ink);
}

.news-body
{
  padding: clamp(1.2rem, 2.5vw, 2rem);
  align-self: center;
}

.news-body h3
{
  font-size: 1.4rem;
}

.news-body .text-link
{
  margin-top: 1.2rem;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SCHALTFLÄCHE IM TITELBEREICH */

.titelbereich .schaltflaeche
{
  display: inline-block;
  padding: 12px 20px;
  background: var(--red);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.titelbereich .schaltflaeche:hover
{
  background: var(--red-dark);
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* FUSSZEILE MIT KONTAKT UND WEITEREN LINKS */

.site-footer
{
  background: #171719;
  color: white;
}

.footer-main
{
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-block: 3.4rem;
}

.footer-brand
{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.brand-mark-footer
{
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.footer-brand strong
{
  line-height: 1.4;
}

.footer-brand p
{
  color: #aaa9ae;
  font-size: .8rem;
}

.footer-column
{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}

.footer-column h2
{
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}

.footer-column a
{
  color: #c8c7cb;
  font-size: .86rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-column a:hover
{
  color: white;
  text-decoration: underline;
}

.footer-bottom
{
  border-top: 1px solid #38383d;
  color: #a9a8ad;
  font-size: .75rem;
}

.footer-bottom .wrap
{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* TABLETS UND SCHMALE FENSTER: Navigation wird zum Aufklappmenü */

@media (max-width: 1120px)
{
  .header-inner
  {
    min-height: 76px;
  }

  .brand-mark
  {
    width: 47px;
    height: 47px;
  }

  .brand-name
  {
    font-size: .73rem;
  }

  .brand-name strong
  {
    font-size: .88rem;
  }

  .menu-toggle
  {
    display: inline-flex;
    align-items: center;
  }

  .main-nav
  {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: .6rem var(--gutter) 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 20px rgba(0,0,0,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(75vh, 520px);
    overflow-y: auto;
  }

  .main-nav.is-open
  {
    display: flex;
  }

  .main-nav a
  {
    padding: .8rem .2rem;
    border-bottom: 1px solid var(--line);
  }
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SMARTPHONES UND KLEINE TABLETS */

@media (max-width: 760px)
{
  .intro-grid
  {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .intro-grid
  {
    margin-top: .5rem;
  }

  .intro-text > p:first-child
  {
    font-size: 1.08rem;
  }

  .group-grid
  {
    grid-template-columns: 1fr 1fr;
  }

  .group-card:first-child
  {
    grid-column: 1 / -1;
  }

  .group-card:first-child .card-visual
  {
    min-height: 160px;
  }

  .card-visual
  {
    min-height: 145px;
  }

  .visual-word
  {
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .news-grid
  {
    grid-template-columns: 1fr;
  }

  .news-card
  {
    min-height: 220px;
  }

  .footer-main
  {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand
  {
    grid-column: 1 / -1;
  }

  .desktop-link
  {
    display: none;
  }

  .mobile-link
  {
    display: inline-flex;
  }
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* KLEINE SMARTPHONES */

@media (max-width: 480px)
{
  .header-inner
  {
    width: calc(100% - 1.25rem);
    gap: .5rem;
    min-height: 68px;
  }

  .brand
  {
    gap: .55rem;
  }

  .brand-mark
  {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .brand-name
  {
    font-size: .65rem;
  }

  .brand-name strong
  {
    font-size: .75rem;
  }

  .menu-toggle
  {
    padding: .5rem .2rem;
    font-size: .84rem;
  }

  .menu-icon
  {
    width: 18px;
  }

  .group-grid
  {
    grid-template-columns: 1fr;
  }

  .group-card:first-child
  {
    grid-column: auto;
  }

  .card-visual, .group-card:first-child .card-visual
  {
    min-height: 145px;
  }

  .section-heading
  {
    align-items: flex-start;
  }

  .news-card
  {
    grid-template-columns: 88px 1fr;
  }

  .news-date
  {
    padding: .5rem;
  }

  .news-date strong
  {
    font-size: 1.2rem;
  }

  .news-body
  {
    padding: 1rem;
  }

  .news-body h3
  {
    font-size: 1.15rem;
  }

  .footer-main
  {
    grid-template-columns: 1fr 1fr;
    gap: 1.7rem 1rem;
  }

  .footer-bottom .wrap
  {
    flex-direction: column;
    gap: .3rem;
  }
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* HANDYS IM QUERFORMAT: Höhe des Einstiegsbereichs begrenzen */

@media (max-height: 500px) and (orientation: landscape)
{
  .header-inner
  {
    min-height: 62px;
  }
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SEHR KLEINE SMARTPHONES
   Für Bildschirmbreiten bis 360 Pixel*/

@media (max-width: 360px)
{
  h1
  {
    font-size: 1.7rem;
  }

  h2
  {
    font-size: 1.35rem;
  }
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* TITELBEREICH DER STARTSEITE
   Begrüßung links, Tanzpaar rechts */

.titelbereich
{
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(1400px, calc(100% - 60px));
  margin: 0 auto;
  padding: 45px 0;
  position: relative;
  isolation: isolate;
}

.titeltext
{
  flex: 1 1 55%;
  min-width: 0;
}

.titeltext h1
{
  margin: 0 0 26px;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.titeltext .slogan
{
  margin: 0 0 24px;
  color: var(--red);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.titeltext > p:not(.slogan)
{
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.titelbild
{
  flex: 0 1 45%;
  min-width: 0;
  text-align: center;
}

.titelbild img
{
  display: block;
  width: 100%;
  max-width: 580px;
  max-height: 600px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* TITELBEREICH AUF KLEINEN BILDSCHIRMEN
   Text und Bild untereinander */

@media (max-width: 650px)
{
  .titelbereich
  {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: calc(100% - 32px);
    padding: 30px 0;
  }

  .titeltext h1
  {
    font-size: 2rem;
  }

  .titeltext .slogan
  {
    font-size: 1.5rem;
  }

  .titelbild img
  {
    max-width: 600px;
    max-height: 680px;
  }
}

/* Besonders kleine Smartphones */

@media (max-width: 360px)
{
  .titeltext h1
  {
    font-size: 1.7rem;
  }

  .titeltext .slogan
  {
    font-size: 1.35rem;
  }

  .titelbereich
  {
    width: calc(100% - 24px);
  }

  .titelbild img
  {
    max-width: 260px;
  }
}

/* Respect visitors who prefer reduced motion. */

@media (prefers-reduced-motion: reduce)
{
  html
  {
    scroll-behavior: auto;
  }

  *, *::before, *::after
  {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}