/* =============================================================
   TWS Rügen – Haupt-Stylesheet
   Exakte Typografie und Farben aus Original-SCSS
   Lokale Schriften: Roboto Condensed + Dosis
   Mobile-first
   ============================================================= */

/* ── LOKALE SCHRIFTEN (@font-face) ─────────────────────────── */

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/roboto-condensed-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/roboto-condensed-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/roboto-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Dosis';
  font-style: normal; font-weight: 200; font-display: swap;
  src: url('../fonts/dosis-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Dosis';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/dosis-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Dosis';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/dosis-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Dosis';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/dosis-800.woff2') format('woff2');
}

/* ── RESET & VARIABLEN ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Exakte TWS-Originalfarben aus SCSS */
  --blue:             #0085c0;   /* Hauptblau: Links, Nav-Border, Icons */
  --blue-dark:        #025579;   /* Footer Copyright */
  --blue-footer:      #0085c0;   /* Footer-Hintergrund */
  --blue-header:      #4a6788;   /* h1-Farbe */
  --red:              #d65050;   /* h2–h6, Hover-Farbe */
  --gray-text:        #838383;   /* Fließtext */
  --gray-light:       #f7f7f7;   /* Abschnittshintergrund */
  --white:            #ffffff;
  --border:           #e0e0e0;
  --font-body:        'Roboto Condensed', sans-serif;
  --font-head:        'Dosis', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── BASIS ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--gray-text);
  background: var(--white);
}

/* ── TYPOGRAFIE – exakt aus Original-SCSS ───────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  color: var(--blue-header);   /* #4a6788 */
  text-transform: uppercase;
  font-weight: 400;
}

h2 {
  font-size: 1.8rem;
  color: var(--red);           /* #d65050 */
  font-weight: 100;
}

h3 {
  font-size: 1.7rem;
  color: var(--red);
}

h4 {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 400;
  text-transform: uppercase;
}

h5 {
  font-size: 1.4rem;
  color: var(--red);
  font-weight: bold;
}

h6 {
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

p {
  font-family: var(--font-body);
  color: var(--gray-text);
  font-size: 1rem;
  font-weight: 100;
  margin-bottom: 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--red);
  text-decoration: none;
}

ul, li {
  font-family: var(--font-body);
  font-weight: 100;
}
ul li { color: var(--gray-text); }

img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
#topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.topbar-logo img {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

.topbar-info {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  flex: 1;
  justify-content: flex-end;
  padding: 0; margin: 0;
}

.topbar-info li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  margin-bottom: 5px;
}

.topbar-info .topbar-icon {
  color: var(--blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.topbar-info small {
  display: block;
  color: var(--blue-header);
  font-size: 11px;
  line-height: 1;
  margin: 0;
}

.topbar-info span,
.topbar-info a {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--blue-header);
  margin: 0;
}
.topbar-info a:hover { color: var(--blue); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#header {
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 47px;
  transition: all 0.2s ease-in-out;
}

#navbar .container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 47px;
  position: relative;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0; padding: 0;
}

/* Nav-Links: exakt aus SCSS – uppercase, font-weight:100, margin-right:50px */
.nav-item .nav-link,
.nav-item strong.nav-link {
  display: block;
  padding: 0.7rem 0;
  margin-right: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 100;
  text-transform: uppercase;
  color: grey;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.nav-item:last-child .nav-link,
.nav-item:last-child strong.nav-link { margin-right: 0; }

.nav-item .nav-link:hover { color: var(--blue); text-decoration: none; }

/* Aktive Seite */
.nav-item.active strong.nav-link {
  color: var(--blue);
  font-weight: 100;
}

/* Hamburger */
.navbar-toggler {
  display: none;           /* Desktop: versteckt */
  flex-direction: column;
  justify-content: space-between;
  width: 38px; height: 30px;
  background: none;
  border: 1px solid var(--blue);
  border-radius: 0;
  cursor: pointer;
  padding: 6px 5px;
  flex-shrink: 0;
  margin-left: auto;       /* drückt Button nach rechts im Topbar */
}
.navbar-toggler span {
  display: block; height: 2px;
  background: var(--gray-text);
  border-radius: 0;
}

/* ── HERO BILD (Unterseiten) ────────────────────────────────── */
#pageimage { overflow: hidden; margin-top: -47px; }

.hero-image {
  width: 100%;
  min-height: 470px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0;
}

/* ── HERO VIDEO (Startseite) ────────────────────────────────── */
.hero-video-wrap {
  width: 100%;
  overflow: hidden;
  height: calc(100vh - 60px);
  max-height: 700px;
  background: #000;
  position: relative;
}

.hero-video-wrap video {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.hero-image-start {
  width: 100%;
  min-height: 470px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ── HAUPTINHALT ────────────────────────────────────────────── */
#container { background: var(--white); padding: 0; overflow: hidden; }

#main .inside { padding: 0; }

/* Artikel: padding aus SCSS (3rem oben/unten) */
.mod_article {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Startseite: grauer Hintergrund */
#services { background-color: var(--gray-light); }
#services .container { width: 90%; }

/* ── H1 als ce_headline (Nav-Bereich Überschriften) ─────────── */
h1.ce_headline {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--blue-header);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1rem;
}

h1.ce_headline.text-center { text-align: center; }

h2.ce_headline {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--red);
  font-weight: 100;
  margin: 28px 0 12px;
}

/* ── STARTSEITE: TEXT + BILD ────────────────────────────────── */
.home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.home-grid .home-text { flex: 1; min-width: 280px; }
.home-grid .home-img  { flex: 0 0 auto; width: 100%; max-width: 420px; }
.home-grid .home-img img { width: 100%; height: auto; }

/* ── CE_TEXT ─────────────────────────────────────────────────── */
.ce_text p    { margin-bottom: 14px; }
.ce_text ul   { margin: 12px 0 14px 20px; font-weight: 100; }
.ce_text li   { margin-bottom: 6px; color: var(--gray-text); }

/* ── KONTAKT-SEITE ──────────────────────────────────────────── */
#kontakt h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-weight: 100;
}

/* ── IMPRESSUM / DATENSCHUTZ ────────────────────────────────── */
.legal-content h1.ce_headline { margin-bottom: 24px; }
.legal-content h2.ce_headline { font-size: 1.4rem; margin-top: 24px; }
.legal-content p  { font-size: 0.9rem; color: var(--gray-text); }
.legal-content ul { margin: 10px 0 12px 20px; font-size: 0.9rem; }

/* ── TABELLEN ───────────────────────────────────────────────── */
table { width: 100% !important; }
table td { text-align: left; font-weight: 100; vertical-align: baseline; }

/* ── FOOTER ─────────────────────────────────────────────────── */
#footer {
  background-color: var(--blue-footer);  /* #0085c0 */
  padding-top: 50px;
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 30px;
}

.footer-col { flex: 1; min-width: 220px; }

/* Footer-Headline: Roboto Condensed (nicht Dosis), exakt aus SCSS */
#footer h3 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 100;
  text-transform: initial;
}

.footer-table {
  border-collapse: collapse;
  font-size: 1rem;
  color: var(--white);
}
.footer-table td {
  padding: 4px 12px 4px 0;
  vertical-align: top;
  font-weight: 100;
  color: var(--white);
  border: none !important;
}
.footer-table td:first-child { opacity: 0.75; white-space: nowrap; }

#footer p   { color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
#footer a   { color: var(--white); transition: all 0.2s ease-in-out; }
#footer a:hover { color: var(--red); text-decoration: none; }

/* Footer Copyright-Leiste */
.footer-copy {
  background-color: var(--blue-dark);  /* #025579 */
  padding: 15px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  width: 100%;          /* volle Breite wie der blaue Footer darüber */
  box-sizing: border-box;
}
.footer-copy p   { margin: 0; font-size: 0.9rem; }
.footer-copy a   { color: var(--white); }
.footer-copy a:hover { color: var(--red); }

/* ── ZURÜCK NACH OBEN ───────────────────────────────────────── */
#to-top { position: relative; z-index: 1; }

#a-toplink {
  opacity: 0;
  background-color: var(--blue);
  position: fixed;
  z-index: 1000;
  right: 30px;
  bottom: 70px;
  border-radius: 50%;
  border: 3px solid var(--white);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease-in-out;
  color: white;
  font-size: 22px;
  text-decoration: none;
}
#a-toplink:hover { background: var(--red); }

/* ── RESPONSIV: TABLET ──────────────────────────────────────── */
@media (min-width: 768px) {
  .hero-image { min-height: 470px; }

  #header { height: 47px; }

  .col-md-7  { width: 58.333%; float: left; padding: 0 15px; }
  .col-md-4  { width: 33.333%; float: left; padding: 0 15px; }
  .offset-md-1 { margin-left: 8.333%; }

  .topbar-info li { margin-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 991px) {
  #topbar { padding-top: 15px; padding-bottom: 15px; }
}

/* ── RESPONSIV: DESKTOP ─────────────────────────────────────── */
@media (min-width: 992px) {
  .col-lg-6  { width: 50%; float: left; padding: 0 15px; }
  .col-xl-7  { width: 58.333%; float: left; padding: 0 15px; }
  .col-xl-5  { width: 41.666%; float: left; padding: 0 15px; }
}

/* ── RESPONSIV: MOBIL ───────────────────────────────────────── */
@media (max-width: 767px) {
  body { font-size: 15px; }

  #topbar .topbar-info { display: none; } /* Mobil: Infoleiste ausblenden wie Original */
  .topbar-logo img { width: 180px; height: auto; }

  #header { height: auto; }

  /* Hamburger einblenden – sitzt jetzt im Topbar neben Logo */
  .navbar-toggler { display: flex; }

  #navbar .container {
    justify-content: center;
    height: auto;
    padding: 0;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    position: absolute;
    top: 100%; left: 0; right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 300;
  }
  .navbar-nav.open { display: flex; }

  .nav-item .nav-link,
  .nav-item strong.nav-link {
    padding: 14px 20px;
    margin-right: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .hero-image { min-height: 200px; }
  .hero-image-start { min-height: 260px; }
  .hero-video-wrap { height: 260px; }

  #pageimage { margin-top: 0; }

  .mod_article { padding-top: 2rem; padding-bottom: 2rem; }

  .home-grid .home-img { max-width: 100%; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-copy { margin-top: 0; }

  #a-toplink { right: 5px; bottom: 5px; }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  #header, #topbar, #to-top, .hero-image, .hero-video-wrap { display: none; }
  #footer { background: none; color: var(--gray-text); }
  #footer a { color: var(--gray-text); }
}
