/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap'); */

:root {
  --primary-color: #2c3e50;
  /*--accent-color: #2980b9;*/
  --accent-color: #004AAD;
  --highlight: #dceefb;
  --card-bg: #ffffff;
  --text-color: #2f2f2f;
  --bg-color: #f9fafa;
  --tw-width: 54ch;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}


h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-color);
  margin-bottom: 1.2rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}


/*Logoanpassung im Header*/
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff; /* Textfarbe im transparenten Header */
}


.logo-img {
  height: 60px;
  width: auto;
  margin-right: 8px;
  background-color: transparent; /* halbtransparentes Weiß */
  padding: 4px 8px; /* oben/unten + seitlich mehr Abstand */
  border-radius: 8px; /* leicht abgerundet */
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


header.scrolled .logo {
  color: var(--primary-color); /* Textfarbe nach Scroll */
}


header.scrolled .logo-img {
  background-color: transparent; /* nach Scroll ohne Hintergrund */
  box-shadow: none;
}


.logo-text {
  display: inline-block;
  margin-right: 50px;
}


/*hero-Überschrift*/




.headline {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}


.typewriter{
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  width: 0;                 /* Startpunkt der Animation */
  max-width: none;          /* wichtig: keine automatische Begrenzung */
  animation: typing 6s steps(45, end) infinite, blink .75s step-end infinite;
height:1.4em;        /* reserviert die Zeilenhöhe */
  line-height:1.4em;   /* Text sitzt mittig */
}





  @keyframes typing{
  0%   { width: 0; }
  40%,
  60%  { width: var(--tw-width); }  /* statt 100% → variable Zielbreite */
  100% { width: 0; }
}



@keyframes blink {
  0%, 100% { border-color: transparent }
  50% { border-color: var(--primary-color) }
}



@media (max-width: 768px) {
  .headline {
    font-size: 1.8rem;
  }

  .typewriter {
    font-size: 1rem;
  }
}


/* === Header / Nav – Desktop === */
/* Standard (Desktop) – transparent, wird erst nach Scroll weiß */
header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.7s ease;
}


/* Weiß nach Scroll */
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 0.1rem 1.25rem;
}


.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:relative;
}


.logo {
    font-weight:700;
    font-size:1.6rem;
    color: var(--primary-color);
}

header.scrolled .logo {
  color: var(--primary-color);
}

header.scrolled .menu li a {
  color: var(--text-color);
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu li a {
  color: var(--text-color);
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.menu li a:hover {
  transform: scale(1.06);
  text-decoration: underline;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.menu-close {
  display: none;
}


/* 1) Checkbox sichtbar unsichtbar machen (nicht display:none!) */
#menu-toggle{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}


@media (max-width: 768px) {
    :root{
    --tw-width: calc(100vw - 3rem); /* Randabstand zur Overlay-Box */


  }


    /* Grundzustand: versteckt */
 /* Menü-Overlay startet UNTER dem Header → Logo bleibt sichtbar */
  .menu{
    display: none;
    position: fixed;
    top: var(--header-h, 64px);   /* startet unter dem Header → Logo bleibt sichtbar */
    left: 0; right: 0;
    /* HIER: exakt wie Header, nicht inherit */
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 1rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }


  /* Burger & X an exakt derselben Stelle (rechts im Header) */
  .menu-icon,
  .menu-close{
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
  }

  /* Standard: Burger sichtbar, X versteckt */
  .menu-icon{ visibility: visible; opacity: 1; }
  .menu-close{ visibility: hidden; opacity: 0; pointer-events: none; }

   /* Wenn geöffnet: Menü sichtbar, X sichtbar, Burger weg */
  #menu-toggle:checked ~ .menu{ display: flex; }
  #menu-toggle:checked ~ .menu-icon{ visibility: hidden; opacity: 0; pointer-events: none; }
  #menu-toggle:checked ~ .menu-close{ visibility: visible; opacity: 1; pointer-events: auto; }


.logo{
    color: var(--primary-color);
}


  /* Link-Stil im Overlay */
  .menu li{ width: 100%; }
  .menu li a{
    color: var(--text-color, #2f2f2f);
    font-weight: 600;
    display: inline-block;
    padding: .25rem .5rem;
  }

  .menu li a:hover{
    color: var(--primary-color);
    transform: scale(1.06);
    font-weight:700;
  }

}

/* Rest bleibt unverändert */



.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background-color: var(--card-bg);
}


/* === Info Card Styles === */

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.info-card.show {
  opacity: 1;
  transform: translateY(0);
}


@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  position: relative;
  text-align: center;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 1rem;
  transition: background-color 0.4s ease;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.info-card:hover {
  background-color: var(--highlight); /* HELLBLAUER Hover-Hintergrund */
}

.icon-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
}

.icon-wrapper {
  width: 110px;
  height: 110px;
  margin: 1.5rem auto 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Hover-Text überlagert alles */
.card-hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--highlight); /* hellblauer Hintergrund beim Hover */
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.4;
}
/* Aktiv bei Hover */
.info-card:hover .card-hover-text {
  opacity: 1;
  pointer-events: auto;
}

.info-card:hover .icon-image {
  opacity: 0.2;
}

.info-card .others {
    margin-top: 5rem;
}

.info-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--bg-color);
}

.info-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.info-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #444;
}




@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ===== Neue Top Hero Sektion mit Hintergrundbild ===== */

 .hero-overlay {
  background: rgba(255, 255, 255, 0.4); /* transparenter Hintergrund */
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid #fff; /* rein weißer Rand */
  max-width: 960px;
  margin: auto;
  color: var(--text-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}




.top-hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* statt fester Höhe für bessere Responsivität */
  background: url("/assets/images/pexels-pixabay-262353_web.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-color); /* statt weiß */
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1.headline {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-content p.typewriter {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}




.cta-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}




.cta-button:hover {
  background-color: var(--primary-color);
}


/* Mobile Optimierung */
@media (max-width: 768px) {
  :root {
    --tw-width: 42ch; /* statt z.B. 36ch → mehr Text sichtbar */
  }



    .typewriter.tw-js{
    animation:none !important;   /* CSS-Typewriter aus */
    white-space:nowrap;
    overflow:hidden;
    position:relative;
    max-width:100%;              /* nie breiter als Box */
    border-right:none;
    padding-right:.15em;         /* Platz für Cursor */
  }

  .typewriter.tw-js::after{
    content:"";
    position:absolute; inset:0 0 0 auto;
    width:2px; background:var(--primary-color);
    animation:blink .75s step-end infinite;
  }



.top-hero{
    min-height: 85vh;           /* weniger Höhe → weniger Beschnitt */
    padding: 0.75rem;           /* Abstand zum Rand */
  }


  .hero-overlay {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }




/* Typewriter soll animiert bleiben, aber nicht rauslaufen */

.typewriter {
  white-space: nowrap;
  border-right-width: 2px;
  max-width: 100%; /* orientiert sich an der Box, nicht am Viewport */
  width: auto;     /* wächst nur so weit wie nötig */
}

.hero-content{
  --tw-width: min(42ch, calc(100% - 2rem)); /* 2rem ~ links+rechts padding */
}


/* bessere Skalierung – ohne harte Sprünge */
.hero-content h1.headline{
  font-size: clamp(1.6rem, 5vw + 0.2rem, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}



  /* 3) Typewriter: Platz reservieren, aber nie breiter als Box */
.hero-content p.typewriter{
  /* Reservierter Platz, aber an die Box gekoppelt */
  max-width: var(--tw-width);
  min-width: var(--tw-width);    /* kein Springen beim Leerzustand */
  white-space: nowrap;
  overflow: hidden;
  height: 1.4em;
  line-height: 1.4em;
}


  .cta-button {
    padding: 0.7rem 1.5rem;
  }
}


.certificates-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.certificates-section .subline {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.certificate-row {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  justify-content: center;
  scroll-snap-type: x mandatory;
}


/* ===== Certificates ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Bild groß auf weißem Grund */
.cert-img {
  width: 100%;
  height: auto;                    /* groß und einheitlich */
  object-fit: contain;              /* ganzes Logo sichtbar */
  display: block;
  background: #fff;                 /* explizit weiß */
  padding: 1rem 1.25rem;            /* „Luft“ um das Logo */
  transition: opacity .3s ease, filter .3s ease;
  border-radius: 1rem;
  /*border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;*/
}

.cert-img_map {
  padding: 0 1.25rem;
}

/*.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}*/


/* Card: weiß, mit sanfter Rundung/Shadow */
.cert-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 1.25rem;
  background: #fff;                 /* weißer Grund */
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}


/* ===== Delivery Map ===== */
.card-map {
  position: relative;
  width: 100%;
  max-width: 620px;
  border-radius: 1.25rem;
  background: #fff;                 /* weißer Grund */
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  overflow: hidden;
}
.boat-animation svg{
    height: 110px;
    width: 100%;
}


.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

/* Hover/Focus: Blau + Text sichtbar, Bild dimmen */
.cert-card:hover .cert-overlay {
  opacity: 1;
  pointer-events: auto;
}
.cert-card:hover .cert-img {
  opacity: .15;
}

.cert-card:hover .cert-hover {
  opacity: 1;
}

/* Titel oben separat */
.cert-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 1rem 1.25rem .25rem;
}

/* Overlay mit Beschreibung – erst unsichtbar */
.cert-overlay {
  position: absolute;
  inset: 0;                         /* füllt die ganze Card */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: #d8edf9;  /* Blau beim Hover */
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  border-radius: 1.25rem;           /* deckt Rundung ab */
}


/*Footer*/

/*logo im Footer*/
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}



.site-footer {
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
  background-color: #dceefb;
  color: #fff;
  padding: 4rem 2rem;
  background-color: var(--accent-color);
}

.site-footer h4 {
    color:#fff;
}

.site-footer a, .site-footer button {
  color: #fff;
}


.site-footer a:hover, .site-footer button:hover {
  color: var(--primary-color);
  opacity: .85;            /* leichter Hover-Effekt */
}

/* Spalten-Gruppe mittig ausrichten */
.site-footer .footer-container{
  display: flex;
  justify-content: center;   /* ganze Spaltenreihe zentriert */
  gap: 0.8rem !important;          /* Desktop + Tablet */
  flex-wrap: wrap;
  gap: 2rem;
}


/* Jede Spalte: selbst mittig stehen, Inhalt links */
.site-footer .footer-column{
  flex: 0 1 240px;           /* Breite pro Spalte */
  margin: 0 0;               /* keine auto-Zentrierung nötig */
  text-align: left;          /* Überschriften/Text links */
}

/* Listen in den Spalten linksbündig */
.site-footer .footer-column ul{
  display: flex;
  flex-direction: column;
  align-items: flex-start;    /* Links bündig */
}

.site-footer .footer-column li{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Kein Zentrieren innerhalb der Zeile */
  margin: 0 0 .6rem 0;
}

.site-footer .footer-column a {
    cursor: pointer;
    margin: 0;
}

.cert-img_footer {
    height: 100px;
}



/* Kopier-Button wie Link/Chip in Weiß */
.copy-email-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: .5rem;
  cursor: pointer;
}

/* Unterer Balken auch in Icon-Blau */
.footer-bottom{
  background: var(--accent-color);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.35);
}


/* "Copied!" Text in Weiß */
.copy-feedback{
  margin-left: .5rem;
  color:#fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.copy-feedback.visible{
  opacity: 1;
  visibility: visible;
}

.footer-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}




.footer-column {
  flex: 0 1 280px;                  /* optionale feste Breite pro Spalte */
  text-align: center;               /* Text zentrieren */
}


.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}



.footer-column ul {
  display: flex;
  flex-direction: column;
  align-items: center;              /* Listeneinträge zentrieren */
}

.footer-column li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  color:#fff;
  font-size: 0.95rem;
   justify-content: center;
}




.footer-column a:hover {
  color: var(--primary-color);
}

/* Icon-Stil */
.footer-column .icon {
  margin-right: 0.6rem;
  font-size: 1rem;
  color:#fff;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  padding: 0.6rem 0.8rem;
  border: 3px solid #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  animation: floatUpDown 2s ease-in-out infinite;
}

.scroll-to-top:hover{
  background: var(--primary-color);
  transform: translateY(-2px);
}

.scroll-logo{
  width: 85%; /* Logo kleiner als Button */
  object-fit: contain; /* skaliert sauber */
  border-radius: 50%;  /* falls das PNG quadratisch ist */
  display: block;      /* kein Baseline-Gap */
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }

}

/* E-Mail-Button + Feedback sauber in einer Linie */
.copy-email-btn{
  display: inline-flex;
  align-items: center;
}

.copy-feedback{
  display: inline-block;
  margin-left: .5rem;        /* Abstand zum Button */
  vertical-align: middle;
}



/* Responsives Layout */
@media (max-width: 768px) {


      /* Mobile: am Anfang transparent über dem Hero */
  header{
    position: fixed;
    z-index: 3000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-bottom: 1.5px solid rgba(0,0,0,.06);
  }




  /* Erst nach Scrollen weiß + Blur */
  header.scrolled{
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-bottom-color: rgba(0,0,0,.06);
  }





  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }


/*responsiver Footer*/
 .site-footer{ padding: 2rem 1.25rem; }

  .footer-container{
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .site-footer .footer-column{
    width: min(100%, 520px);
    margin-inline: auto;
  }

    /* Opt.: Email-Button bricht sauber um, falls schmaler Bildschirm */
  .copy-email-btn{ max-width: 100%; }
}

  .footer-column .icon{
    flex: 0 0 22px;
    width: 22px;
    text-align: center;
    margin-right: .4rem;
  }

  /* Logo-Block kompakt und ohne Zusatzabstände */
  .footer-logo{
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: .25rem 0 0;           /* enger zum oberen Block */
  }


  .footer-bottom{ padding: .6rem 1rem; }



.typewriter.tw-js{
animation:none !important;   /* CSS-Typewriter aus */
white-space:nowrap;
overflow:hidden;
position:relative;
max-width:100%;              /* nie breiter als Box */
border-right:none;
padding-right:.15em;         /* Platz für Cursor */
}

.typewriter.tw-js::after{
content:"";
position:absolute; inset:0 0 0 auto;
width:2px; background:var(--primary-color);
animation:blink .75s step-end infinite;
}



@media (max-width: 480px) {
  .cert-img { height: 200px; }
}