/* ========== VARIABLES ========== */
:root {
  --flag-black: #000000;
  --flag-white: #FFFFFF;
  --flag-green: #007A3D;
  --flag-red: #CE1126;
  
  --primary: var(--flag-green);
  --secondary: #d4a017;
  --accent: var(--flag-red);
  --light: #f8f5f0;
  --dark: var(--flag-black);
  --gray: #6c757d;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* Schärfere Schrift auf macOS */
  -moz-osx-font-smoothing: grayscale;
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Optimiert: Einzeilige Padding-Definition */
}

.site-main > section {
  padding: 3rem 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  /* Barrierefreiheit */
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #005a2d;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease; /* Hinzugefügt: Sanfte Animation */
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--primary);
  color: white;
}

.full-width {
  width: 100%;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ========== SCROLL TO TOP ========== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--flag-black);
  color: var(--flag-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(206, 17, 38, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Barrierefreiheit */
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.scroll-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  background: var(--flag-green);
  transform: translateY(-3px);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(206, 17, 38, 0.8),
    0 0 40px rgba(206, 17, 38, 0.4);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2.5;
}

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

html {
  scroll-behavior: smooth;
}