/* =================================================
   HIGH-END CONSULTING STYLE (Responsive / iPhone Ready)
   ================================================= */

/* =========================
   RESET & VARIABLEN
   ========================= */
:root{
  --royal-1:#1f3cff;
  --royal-2:#162a9e;
  --dark:#0b0b0d;

  /* neutrals */
  --text:#ffffff;
  --muted: rgba(255,255,255,0.82);

  /* surfaces */
  --card: rgba(255,255,255,0.075);
  --border: rgba(255,255,255,0.14);
  --glass: rgba(11,11,13,0.70);

  /* shadows */
  --shadow-lg: 0 18px 45px rgba(0,0,0,0.38);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.28);
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.22);

  /* radii */
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;

  /* focus */
  --focus-ring: 0 0 0 3px rgba(255,255,255,0.55);

  /* typography scale (fluid) */
  --h1: clamp(1.65rem, 1.25rem + 2.2vw, 2.35rem);
  --h2: clamp(1.25rem, 1.10rem + 1.1vw, 1.70rem);
  --h3: clamp(1.05rem, 1.0rem + 0.5vw, 1.20rem);
  --body: clamp(0.98rem, 0.92rem + 0.25vw, 1.05rem);

  /* layout */
  --container: 1100px;
  --pad-x: 20px;
}

*,
*::before,
*::after{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  overflow-x:hidden; /* prevent horizontal scroll */
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
   BODY & GLOBAL
   ========================= */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--body);
  color: var(--text);
  line-height:1.6;

  /* premium gradient + subtle depth */
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(255,255,255,0.07), transparent 55%),
    linear-gradient(160deg, var(--royal-1) 0%, var(--royal-2) 45%, var(--dark) 100%);
}

/* Smooth text rendering */
body, button, input, textarea{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a{ color: var(--text); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:none;
  box-shadow: var(--focus-ring);
  border-radius: 12px;
}

/* Container */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Headings */
h1,h2,h3{
  margin:0 0 12px;
  line-height:1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.20);
}
h1{ font-size: var(--h1); }
h2{ font-size: var(--h2); }
h3{ font-size: var(--h3); }

p{ margin:0 0 14px; }
.fine{ color: var(--muted); font-size:0.95em; }
.intro-sub{ color: var(--muted); }

/* Utilities */
.center{ text-align:center; }
.section{ padding: 34px 0; }
.intro-left{ text-align:left; }
.intro-gap{ margin-top: 18px; }

/* =========================
   ACCESSIBILITY: SKIP LINK
   ========================= */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:12px;
  box-shadow: 0 2px 14px rgba(0,0,0,.30);
  z-index:9999;
}
.skip-link:focus{ left:10px; }

/* =========================
   HEADER & NAV (Consulting style)
   ========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,11,13,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

@supports (backdrop-filter: blur(12px)){
  .site-header{ backdrop-filter: blur(12px); }
}

.nav-container{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--pad-x);
}

/* Brand */
.brand{ min-width:0; flex: 1 1 auto; }
.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brand-logo{
  width:46px;
  height:46px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.brand-title{
  font-size: 1rem;
  font-weight: 720;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* Desktop nav */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
}
.nav a:hover{
  background: rgba(255,255,255,0.085);
  text-decoration:none;
}

/* Burger */
.burger{
  display:none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 800;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
}

/* Language switch */
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex: 0 0 auto;
  max-width: 100%;
}
.lang-switch a{
  padding:6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.lang-switch a:hover{
  background: rgba(255,255,255,0.10);
  text-decoration:none;
}
.lang-switch a.active{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.22);
  font-weight: 800;
}
.lang-switch .sep{ opacity:.65; }

/* =========================
   HERO (High-end)
   ========================= */
.hero{
  padding: 54px 0 40px;
}
.hero-home-inner{
  text-align:center;
}

/* logo on hero */
.home-logo{
  width: min(320px, 72vw);
  margin: 14px auto 18px;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.42));
}

/* welcome line */
.welcome{
  text-align:center;
  font-size: 1.03rem;
  opacity: 0.90;
  margin-top: 6px;
}

/* bold tagline (already bold in HTML, this improves spacing) */
.home-tagline{
  text-align:center;
  margin-top:10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* CTA row */
.hero-ctas{
  margin-top: 22px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* =========================
   CARDS
   ========================= */
.panelish,
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.card h3{ margin-bottom: 6px; }
.card .fine{ margin-bottom: 0; }

/* =========================
   BUTTONS (Consulting style)
   ========================= */
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.26);
  font-weight: 750;
  text-decoration:none;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  max-width: 100%;
}

.cta:hover{
  background: rgba(255,255,255,0.18);
  text-decoration:none;
  transform: translateY(-1px);
}

/* Primary */
.cta.primary{
  background: rgba(255,255,255,0.94);
  color: #0b0b0d;
  border-color: rgba(255,255,255,0.85);
  text-shadow: none;
}
.cta.primary:hover{
  background: #ffffff;
}

/* =========================
   FORM
   ========================= */
.kontakt-form{
  max-width: 560px;
  margin: 18px auto 0;
  display:grid;
  gap: 12px;
}

.kontakt-form label{
  text-align:left;
  font-weight: 650;
  color: rgba(255,255,255,0.92);
}

.kontakt-form input,
.kontakt-form textarea{
  width:100%;
  max-width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.25);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.kontakt-form textarea{
  resize: vertical;
  min-height: 150px;
}

.kontakt-form button{
  justify-self:center;
}

/* =========================
   FOOTER
   ========================= */
.site-footer{
  margin-top: 44px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

/* =================================================
   MOBILE: iPhone SE / 12 / 13 PERFECT LAYOUT
   ================================================= */
@media (max-width:768px){

  /* Header: allow wrap so nothing pushes out of viewport */
  .nav-container{
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand{ flex: 1 1 100%; }
  .brand-title{
    white-space: normal; /* key for iPhone SE */
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .burger{ display:inline-flex; }

  /* Mobile nav dropdown: premium panel */
  .nav{
    display:none;
    position:absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction:column;
    gap: 6px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15,15,25,0.96);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--shadow-md);
  }

  .nav.show{ display:flex; }

  .nav a{
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
  }
  .nav a:hover{
    background: rgba(255,255,255,0.10);
  }

  /* Language switch sits nicely */
  .lang-switch{
    margin-left: auto;
  }

  /* Hero spacing */
  .hero{ padding: 44px 0 34px; }
  .home-logo{
    width: min(240px, 68vw);
    margin: 12px auto 16px;
  }

  /* Text: keep comfortable line length */
  .intro-left{
    text-align:left;
  }

  /* Cards: single column */
  .cards{
    grid-template-columns: 1fr;
  }

  /* CTA: full width on small screens */
  .hero-ctas{
    width: 100%;
  }
  .cta{
    width: 100%;
  }
}

/* Extra: iPhone SE (very small) */
@media (max-width:360px){
  :root{ --pad-x: 16px; }
  .brand-logo{ width:42px; height:42px; }
  .brand-title{ font-size: 0.92rem; }
  .home-logo{ width: min(220px, 70vw); }
  .cta{ padding: 11px 14px; }
}

/* =================================================
   REDUCED MOTION
   ================================================= */
@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior: auto !important;
    transition: none !important;
  }
}