/* =========================================
   GLOBAL LAYOUT
========================================= */

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #5a3e1b; /* warmes Braun – dein Standard */
  background: #fff7e6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================================
   ÜBERSCHRIFT
========================================= */

.title-row h1 img {
	max-width: 20%;
	height: auto;
}

/* =========================================
   HERO
   Header
========================================= */

.hero {
  background: linear-gradient(135deg, #f7d774, #e89b2c);
  color: #5a3e1b;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

/* Primär: Orange */
.btn-primary {
  background: #e89b2c;
  color: white;
}
.btn-primary:hover {
  background: #c46a1b;
}

/* Sekundär: Weiß + Orange */
.btn-secondary {
  background: white;
  color: #e89b2c;
  border: 2px solid #e89b2c;
}
.btn-secondary:hover {
  background: #fff3d6;
}

/* Ghost: Transparenter Button */
.btn-ghost {
  background: transparent;
  color: #5a3e1b;
  border: 2px solid #5a3e1b;
}
.btn-ghost:hover {
  background: rgba(90, 62, 27, 0.1);
}

/* =========================================
   LOGOUT BUTTON (freundliches Rot-Orange)
========================================= */

.btn-logout {
  background: #d9534f; /* warmes Rot-Orange */
  color: white;
  border: 2px solid #b94743;
}

.btn-logout:hover {
  background: #c64541;
  box-shadow:
    0 10px 0 rgba(0,0,0,0.25),
    0 14px 18px rgba(0,0,0,0.15),
    0 0 14px rgba(217,83,79,0.55); /* roter Glow */
}

.btn-logout:active {
  transform: translateY(-2px);
}

/* =========================================
   3D LIFT BUTTON EFFECT
========================================= */

.btn {
  position: relative;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(.15,.75,.35,1.25),
    box-shadow 0.25s cubic-bezier(.15,.75,.35,1.25),
    background-color 0.2s ease;
  
  /* Grund-Lift-Schatten */
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}

/* Hover: Button hebt sich ab */
.btn:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 0 rgba(0,0,0,0.25),
    0 14px 18px rgba(0,0,0,0.15);
}

/* Klick: Button drückt sich ein */
.btn:active {
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 rgba(0,0,0,0.25),
    0 8px 12px rgba(0,0,0,0.12);
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: #5a3e1b; /* dunkles Braun */
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-nav a {
  color: #f7d774; /* gelb */
  margin: 0 10px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* =========================================
   ERROR
========================================= */

.error {
  color: #d9534f;
  margin-bottom: 15px;
  font-weight: bold;
}

/* =========================================
   ERFOLG
========================================= */

.success {
color: #2e7d32;
font-weight: bold;
margin-bottom: 20px;
}

/* =========================================
   ANIMIERTE ÜBERSCHRIFT UNDERLINE
========================================= */

.animated-underline {
	position: relative;
	display: inline-block;
}
.animated-underline::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -4px;
	height: 3px;
	width: 100%;
	background-color: #c64541;

	transform: translateX(-50%) scaleX(0);
	transform-origin: center;

	animation: underlineGrowCenter 1.8s ease-out forwards;
}
@keyframes underlineGrowCenter {
	from {
		transform: translateX(-50%) scaleX(0);
	}
	to {
		transform: translateX(-50%) scaleX(1);
	}
}

/* =========================================
   NAVIGATION
========================================= */

.topnav {
    width: 100%;
    background: #fff7e6;
    border-bottom: 2px solid #f2d7a6;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #5a3e1b;
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-logo img {
    width: 32px;
    height: auto;
    margin-right: 8px;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #5a3e1b;
    font-weight: 500;
}

.nav-links a:hover {
    color: #c46a1b;
}

/* Buttons in der Navigation */
.nav-btn-primary {
    background: #c46a1b;
    color: white !important;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 20px;
}

.nav-btn-secondary {
    background: #f2d7a6;
    color: #5a3e1b !important;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 10px;
}

/* Mobile */
@media (max-width: 800px) {
    .nav-links {
		display: none;
	}

	.nav-links.open {
		display: block;
	}
}

/* =========================================
   BURGERNAVIGATION FÜR HANDYS
========================================= */

/* BURGER BUTTON */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger div {
    width: 28px;
    height: 3px;
    background: #5a3e1b;
    border-radius: 2px;
}

/* MOBILE NAVIGATION */
@media (max-width: 800px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff7e6;
        width: 100%;
        padding: 20px 0;
        border-bottom: 2px solid #f2d7a6;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        animation: fadeIn 0.3s ease;
    }

    .nav-links a {
        display: block;
        margin: 12px 0;
        font-size: 1.2rem;
    }

    .burger {
        display: flex;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   GLOBAL DARKMODE
========================================= */

body.dark {
    background-color: #111;
    color: #fff;
}

/* Text */
body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark li,
body.dark span,
body.dark label {
    color: #fff;
}

/* Links */
body.dark a {
    color: #ffdd99;
}

/* Sektionen & Container */
body.dark .section,
body.dark .section--light,
body.dark .section--cta,
body.dark .container,
body.dark .hero,
body.dark .hero__content,
body.dark .help-section,
body.dark .faq-accordion label,
body.dark .faq-accordion .content {
    background: #222;
    color: #fff;
    border-color: #444;
}

/* Navigation */
body.dark .topnav,
body.dark .nav-inner,
body.dark .nav-links {
    background: #222;
}

body.dark .nav-links a {
    color: #fff;
}

/* Buttons */
body.dark .btn,
body.dark .btn-primary,
body.dark .btn-secondary,
body.dark .btn-ghost {
    background: #333;
    color: #fff;
    border-color: #666;
}

/* Footer */
body.dark .footer {
    background: #222;
    color: #fff;
}

body.dark .footer-nav a {
    color: #ffdd99;
}

.detail-click { cursor: pointer; }
/* Bilder */
.detail-img {
    max-width: 400px;
    width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: zoom-in;
}

.detail-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

body.dark .detail-img {
    box-shadow: 0 4px 12px rgba(255,255,255,0.12);
}

body.dark .detail-img:hover {
    box-shadow: 0 8px 20px rgba(255,255,255,0.18);
}

.btn-orange {
    background: #e89b2c;      /* warmes Orange */
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-orange:hover {
    background: #ffb347;      /* heller beim Hover */
    transform: translateY(-3px);
}

/* Darkmode */
body.dark .btn-orange {
    background: #b8741f;
}

body.dark .btn-orange:hover {
    background: #d48a28;
}

.info-yellow {
	background-color: #fff9c4; /* helles Gelb */
	border: 1px solid #f0e68c; /* dezente Umrandung */
	padding: 12px 15px;
	border-radius: 8px;
	margin: 15px auto;
	width: fit-content;
	text-align: left;
	font-size: 0.9rem;
	line-height: 1.4;
}
/* Darkmode-Fix für gelbe Infofenster */
body.dark .info-yellow {
    background: #e6d98a !important; /* etwas dunkleres Gelb */
    color: #000 !important;
}

.btn-link-creme {
	display: inline-block;
	background: #fff7e6;
	color: #5a3e1b;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #d8c4a3;
	box-shadow: 0 2px 0 rgba(0,0,0,0.15);
	transition: 0.2s ease;
	min-width: 150px;
	text-align: center;
}
.btn-link-creme:hover {
	background: #ffefcc;
	transform: translateY(-3px);
	box-shadow:
		0 6px 0 rgba(0,0,0,0.15),
		0 10px 14px rgba(0,0,0,0.12);
}
body.dark .btn-link-creme {
	background: #222;
	color: #eee;
	border-color: #444;
}
body.dark .btn-link-creme:hover {
	background: #2c2c2c;
}

.section {
    padding: 60px 0;
}

#regions {
    padding-top: 140px;
}

#about {
    padding-top: 140px;
}

#features {
    padding-top: 140px;
}
/* Footer Versionsnummer */
.version-info {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 0.75rem; /* kleiner */
    color: #888;
}

body.dark .version-info {
    color: #bbb;
}
/* Footer Powered */
.powered {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 0.75rem; /* kleiner */
    color: #ccc;
}
.powered a {
    color: #ccc; /* hellgrau */
}

.powered a:hover {
    color: #ddd; /* etwas heller beim Hover, optional */
}
body.dark .powerded {
    color: #bbb;
}