/* ---------------------------------------
   TEUTOMARSCH – Corporate Landingpage
   --------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  --primary: #1F3D33;          /* dunkles Waldgrün */
  --primary-light: #1A4A3A;
  --forest-light: #487B52;      /* helleres Grün für Rahmen */
  --accent: #D37A33;            /* Trail-Orange */
  --cream: #F6EDE3;             /* Hintergrund */
  --secondary: #F5D96D;         /* Hinweis / Badge */
  --text: #1A1A1A;
  --white: #ffffff;

  --error: #D64545;             /* Fehlermeldungen */
  --success: #2F9E44;           /* Erfolg (valid) */
  --focus-ring: rgba(211,122,51,0.35);  /* weicher Orange-Glow */
  --radius: 12px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,.12);
}

/* ------------------------ Global ------------------------ */

body {
    margin: 0;
    background: var(--cream);
    color: var(--primary);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: "Nunito Sans", sans-serif;
}

/* ------------------------ Hero ------------------------ */

.hero {
    background: url('hero.jpg') center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
	/*opacity:0.5;*/
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
	/*rgba(255,255,255,0.6);*/
	
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 20px;
	/*opacity:1;*/
}

.logo {
    width: 90px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 48px;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    margin-top: 10px;
    font-size: 20px;
}

/* Date box */

.hero-date-box {
    margin: 25px auto;
    background: var(--secondary);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: var(--radius);
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
}

/* CTA */

.cta {
    display: inline-block;
    background: var(--accent);
    padding: 14px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.3s ease;
}

.cta:hover {
    background: #b46529;
}

/* ------------------------ Sections ------------------------ */

.section-light {
    background: var(--cream);
    padding: 0px 30px 30px 0px;
    text-align: center;
}

.section-dark {
    background: var(--primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

/* Routes */

.routes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.route-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 260px;
}

/* Reasons */

.reasons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.reason-card {
    background: var(--primary-light);
    padding: 25px;
    width: 260px;
    border-radius: var(--radius);
    color: white;
}

/* ------------------------ Footer ------------------------ */

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    
	/* margin-top: 30px; */
}


.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--accent);
}

.alink {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.alink:hover {
    color: var(--secondary);
}


/* ------------------------ Responsive ------------------------ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-date-box {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 75vh;
    }

    .hero h1 {
        font-size: 28px;
    }

    .cta {
        padding: 12px 16px;
    }
}

.form-group{
  margin-bottom: 16px;
}

.form {
	width: 50%;
	margin: 0 auto;    /* Oben/Unten 0, Links/Rechts automatisch */
}

label{
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
  font-family: "Nunito Sans", system-ui, sans-serif;
  letter-spacing: .2px;
}

.input{
  width: 90%;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 2px solid #e5e5e5;
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .08s ease;
  outline: none; /* wir machen eigenen Focus-Ring */
}

/* Hover: sanfter Kontrast */
.input:hover{
  border-color: #d7d7d7;
}

/* Focus: Micro-Interaction + natürlicher Orange-Glow */
.input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
  transform: translateY(-1px);
}

/* Disabled */
.input:disabled,
.input[aria-disabled="true"]{
  background: #f7f7f7;
  color: #8a8a8a;
  border-color: #ececec;
  cursor: not-allowed;
}

/* Readonly – sichtbar aber nicht dominant */
.input[readonly]{
  background: #fbfbfb;
  border-style: dashed;
}

/* Placeholder */
.input::placeholder{
  color: #9aa3a9;
  opacity: 1; /* sicherstellen, dass es überall gleich wirkt */
}

/* Hilfe-/Hinweistext */
.form-hint{
  margin-top: 6px;
  font-size: 14px;
  color: #5b6b63;
}

/* Fehler- & Erfolgszustände (via Klasse setzen) */
.input.is-error{
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(214,69,69,.18);
}
.input.is-success{
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(47,158,68,.18);
}

/* Fehlermeldungstext */
.form-error{
  margin-top: 6px;
  font-size: 14px;
  color: var(--error);
  font-weight: 600;
}

.form-success{
  margin-top: 6px;
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

/* Wrapper für Felder mit Icon/Buttons (z. B. Passwort-Toggle) */
.input-wrap{
  position: relative;
}
.input-action{
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s ease;
}
.input-action:hover{
  background: rgba(31,61,51,.08);
}

/* Select: gleiche Höhe/Rundung */
select.input{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 2.5rem) 0.5rem;
  background-size: 7px 7px, 7px 7px, 1px 2.2rem;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* Textarea */
textarea.input{
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
/* Browser-Validation: :invalid / :valid */
/*.input:required:invalid{
  border-color: var(--error);
}
.input:required:valid{
  border-color: var(--success);
}*/

/* Optional: nur nach Touch/Blur hervorheben */
.input.was-validated:invalid{
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(214,69,69,.18);
}
/* Chrome/Safari Autofill Hintergrund neutralisieren */
.input:-webkit-autofill{
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
@keyframes shakeX {
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(4px); }
}
.input.shake{
  animation: shakeX .35s ease;
}
.btn{
  display:inline-block; width:100%;
  padding:14px 16px;
  border:0; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  font-weight: 700; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active{ transform: translateY(0); }



/* Elemente sind beim Laden unsichtbar */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

/* Sobald sichtbar (per JS gesetzt) */
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Logout Button oben rechts */
.logout-top {
    position: fixed;
    top: 22px;
    right: 24px;
    padding: 10px 18px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    z-index: 9999;
    transition: background .25s ease, transform .12s ease, box-shadow .25s ease;
}

/* Hover-Effekt: CI-konforme Micro-Interaction */
.logout-top:hover {
    background: #b46529; /* dunklerer Orange-Ton */
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* Active (Button gedrückt) */
.logout-top:active {
    transform: scale(0.97);
}

/* ---------- Tabellencontainer ---------- */
.table-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 10px;
}

/* ---------- Tabelle ---------- */
.tm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ---------- Tabellenkopf ---------- */
.tm-table thead {
    background: var(--primary);
    color: var(--white);
}

.tm-table th {
    padding: 14px;
    text-align: left;
    font-family: "Nunito Sans", sans-serif;
    letter-spacing: 0.5px;
}

/* ---------- Tabellenzellen ---------- */
.tm-table td {
	text-align: left;
	
    padding: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: var(--text);
}

/* Letzte Zeile ohne Border */
.tm-table tr:last-child td {
    border-bottom: none;
}

/* ---------- Hover-Effekt ---------- */
.tm-table tbody tr:hover {
    background: rgba(72, 123, 82, 0.10); /* leichtes Grün */
    transition: background 0.25s ease;
}

/* ---------- Status-Farben ---------- */
.status-ok {
    color: var(--success);
    font-weight: 600;
}
.status-wait {
    color: var(--accent);
    font-weight: 600;
}
.status-cancel {
    color: var(--error);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .tm-table th, .tm-table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* Erfolg */
.startgroup-select.success {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(47,158,68,0.25);
    transition: .25s ease;
}

/* Fehler */
@keyframes shakeX {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-5px); }
    40%,80% { transform: translateX(5px); }
}

.startgroup-select.error {
    animation: shakeX .4s ease;
    border-color: var(--error) !important;
}

