/* -------------------------------------------------
   THEME VARIABLES – LIGHT MODE
--------------------------------------------------- */
:root {
    --text-50: oklch(95.85% 0.005 274.96);
    --text-100: oklch(91.83% 0.009 264.52);
    --text-200: oklch(83.49% 0.018 264.47);
    --text-300: oklch(74.95% 0.028 264.39);
    --text-700: oklch(40.09% 0.033 264.10);
    --text-800: oklch(30.86% 0.023 264.15);
    --text-900: oklch(20.86% 0.013 264.25);
    --text-950: oklch(15.35% 0.007 258.40);

    --background-50: oklch(95.93% 0.007 247.90);
    --background-100: oklch(92.05% 0.015 244.73);
    --background-200: oklch(83.76% 0.030 248.19);
    --background-300: oklch(75.34% 0.047 249.47);
    --background-700: oklch(40.79% 0.054 250.20);
    --background-800: oklch(31.42% 0.038 249.12);
    --background-900: oklch(20.99% 0.022 251.79);
    --background-950: oklch(15.66% 0.011 248.32);

    --primary-50: oklch(95.79% 0.012 247.95);
    --primary-100: oklch(91.39% 0.026 253.57);
    --primary-200: oklch(82.72% 0.053 253.75);
    --primary-300: oklch(74.04% 0.080 254.07);
    --primary-400: oklch(65.40% 0.110 254.39);
    --primary-500: oklch(57.01% 0.139 255.18);
    --primary-600: oklch(48.63% 0.115 255.11);
    --primary-700: oklch(39.87% 0.091 255.00);
    --primary-800: oklch(30.63% 0.066 254.78);
    --primary-900: oklch(20.63% 0.037 254.41);
    --primary-950: oklch(15.20% 0.020 253.73);

    --secondary-50: oklch(95.88% 0.009 247.92);
    --secondary-100: oklch(91.56% 0.019 255.54);
    --secondary-200: oklch(83.20% 0.038 253.25);
    --secondary-300: oklch(74.52% 0.059 254.19);
    --secondary-400: oklch(65.97% 0.081 253.65);
    --secondary-500: oklch(57.19% 0.104 254.48);
    --secondary-600: oklch(48.91% 0.086 254.04);
    --secondary-700: oklch(40.01% 0.069 254.66);
    --secondary-800: oklch(30.84% 0.049 253.89);
    --secondary-900: oklch(20.65% 0.028 255.84);
    --secondary-950: oklch(15.30% 0.015 257.65);

    --accent-50: oklch(96.52% 0.014 67.66);
    --accent-100: oklch(93.07% 0.027 65.67);
    --accent-200: oklch(86.16% 0.054 65.17);
    --accent-300: oklch(79.34% 0.082 64.36);
    --accent-400: oklch(72.66% 0.109 62.88);
    --accent-500: oklch(66.25% 0.132 59.87);
    --accent-600: oklch(56.34% 0.111 60.14);
    --accent-700: oklch(45.97% 0.088 60.54);
    --accent-800: oklch(34.97% 0.063 61.22);
    --accent-900: oklch(23.04% 0.036 62.58);
    --accent-950: oklch(16.44% 0.022 62.10);


    
    --radius: 10px;

    --shadow: 0 4px 12px oklch(0 0 0 / 0.08);

    --transition-fast: 120ms ease;
    --transition: 220ms ease;
}

/* -------------------------------------------------
   GLOBAL STYLES
--------------------------------------------------- */

h1 {
    font-size: 2.986rem;
    text-decoration: underline;
}

h2 {
    font-size: 2.488rem;
}

h3 {
    font-size: 2.074rem;
}

h4 {
    font-size: 1.728rem;
}

h5 {
    font-size: 1.44rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    font-size: 1rem;
}

label {
    font-size: 1rem;
}

body {
    font: bold 14px/1.4 'Inter', arial, sans-serif;
    background: var(--background-200);
}


.hidden {
    display: none;
}

.big-box {
    background: var(--background-100);
    margin: 30px 20px 30px 20px;
    padding: 15px;
    border-radius: var(--radius);
    color: var(--text-900);
}

.warning {
    display: inline-flex;
    flex-direction: column;

    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 12px;

    background: color-mix(in srgb, var(--accent-100) 85%, white);
    border: 1px solid var(--accent-50);

    color: var(--accent-900);
    font-size: 0.95rem;
    line-height: 1.4;

    box-shadow: var(--shadow);
}

button {
    margin: 5px;
    padding: 10px;
    font-size: 1rem;
    border-radius: var(--radius);
    color: var(--text-50);
    border: none;
    box-shadow: var(--shadow);
    background: var(--primary-500);
    cursor: pointer;
}

button:hover {
    box-shadow: var(--shadow);
    background: var(--accent-500);
}

button.danger {
  background: #d9534f;
  font-size: 0.85rem;
}


/* -------------------------------------------------
   HEADER
--------------------------------------------------- */

header {
    display: flex;
    align-items: center;
    padding: 0 5px;
    background: var(--background-50);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font: bold 12px/0.8 'Inter', arial, sans-serif;

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(14px) saturate(140%);

    transition:
        opacity 0.4s cubic-bezier(.22,1,.36,1),
        transform 0.4s cubic-bezier(.22,1,.36,1),
        backdrop-filter 0.4s ease;

    will-change: opacity, transform;
}

header img {
    width: 40px;
    margin: 2px;
}

.header-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-text {
    align-items: baseline; /* 👈 key */
    display: flex;
    gap: 0.5rem;
}

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

header nav a {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    padding: 0 15px;
    position: relative;
    font: bold 14px/1.4 'Inter', arial, sans-serif;
}

header nav a:after {    
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 3px;
  left: 50%;
  position: absolute;
  background: var(--text-950);
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}
header nav a:hover:after { 
  width: 100%; 
  left: 0; 
}

header nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* -------------------------------------------------
   FOOTER
--------------------------------------------------- */

footer {
    background: var(--background-100);
    width: 99%;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 2rem;
    padding: 5px 5px 20px 10px;
    border-radius: var(--radius);
}

footer img {
    width: 80px;
    margin: 10px 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: auto;
    padding-right: 20px;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text);
    display: inline-block;
    padding: 5px 10px;
    position: relative;
}

.footer-links a:after {    
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 3px;
  left: 50%;
  position: absolute;
  background: var(--text-900);
  transition: width 0.3s ease 0s, left 0.3s ease 0s;
  width: 0;
}

.footer-links a:hover:after { 
  width: 100%; 
  left: 0; 
}

/* -------------------------------------------------
   FORMULAR
--------------------------------------------------- */

.form-grid {
    margin: 5px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}


.form-item {
    text-decoration: none;
    color: var(--text-50);
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.form-content {
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.20),
            rgba(255, 255, 255, 0.04) 45%,
            rgba(0, 0, 0, 0.12)
        ),
        var(--primary-700);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 6px 14px rgba(37, 99, 235, 0.18);
}

.form-item:hover .form-content {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.20),
            rgba(255, 255, 255, 0.04) 45%,
            rgba(0, 0, 0, 0.12)
        ),
        var(--secondary-500);
}

.form-content img {
    max-width: 40%;
    height: auto;
}

/* -------------------------------------------------
   FORM
--------------------------------------------------- */

.form-wrapper {
    margin: 20px;
    padding: 20px;
    background: var(--background-100);
    border-radius: var(--radius);
    color: var(--text-900);
    max-width: 65%;
    margin: auto;
}

.block {
    background: var(--background-50);
    border-radius: var(--radius);
    padding: 0px 10px 10px 10px;
    color: var(--text-950);
}

.field label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

.section {
  margin-bottom: 1.5rem;
}

input {
  padding: 0.6rem 0.7rem;
}

textarea {
    width: 50%;
}

.tab-30 {
    margin-left: 30px;
}

/* -------------------------------------------------
   STARTPAGE
--------------------------------------------------- */

/* Collapsible button */
.collapsible {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  margin: 0;

  border: none;
  border-radius: var(--radius);
  background: var(--primary-500);
  color: var(--text-50);

  box-shadow: var(--shadow);
  transition: background 0.2s ease, border-radius 0.2s ease;
  position: relative;
}

/* Hover + active */
.collapsible:hover {
  background: var(--primary-600);
}

/* When open, visually merge button + content */
.collapsible.active {
  border-radius: 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

/* Plus / minus icon */
.collapsible::after {
  content: "+";
  position: absolute;
  right: 18px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.collapsible.active::after {
  content: "–";
}

/* Content panel */
.content {
  max-height: 0;
  overflow: hidden;

  background: var(--background-100);
  color: var(--text-900);

  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);

  transition: max-height 0.25s ease;
}

/* Inner padding */
.content p {
  padding: 16px 18px;
  margin: 0;
}

.collapsible + .content {
  margin-bottom: 8px;
}

.hero {
    position: relative;      /* anchor for absolute children */
    width: 100%;
}

.hero img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

#welcome-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: var(--text-100);
    text-align: center;
    white-space: nowrap;
}

/* -------------------------------------------------
   KONTAKT
--------------------------------------------------- */

.row {
    display: flex;
}

.column-40 {
    flex: 40%;
    padding: 0 5px;
}
.column-50 {
    flex: 50%;
    padding: 0 5px;
}
.column-60 {
    flex: 60%;
    padding: 0 5px;
}