
:root{
  --text:#252525;
  --muted:#66707a;
  --blue:#078fe3;
  --blue-dark:#0876c4;
  --blue-soft:#eef8fe;
  --blue-line:#cfeafb;
  --white:#ffffff;
  --surface:#f7f9fb;
  --line:#e3e8ed;
  --shadow:0 18px 50px rgba(35,54,75,.09);
  --radius:20px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.65;
}
img{max-width:100%;display:block}
a{color:inherit}
button,input,textarea{font:inherit}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}
.logo-link{display:flex;align-items:center;text-decoration:none}
.logo-link img{width:205px;height:auto}
.nav{display:flex;align-items:center;gap:34px}
.nav a{
  text-decoration:none;
  font-weight:650;
  font-size:.95rem;
  color:var(--text);
  transition:.2s ease;
}
.nav a:hover,.nav a[aria-current="page"]{color:var(--blue)}
.menu-btn{
  display:none;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:1.55rem;
  padding:8px;
  cursor:pointer;
}

.hero{padding:104px 0 92px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:70px;
  align-items:center;
}
.eyebrow{
  color:var(--blue);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.77rem;
  font-weight:800;
  margin-bottom:20px;
}
.hero h1,.page-hero h1{
  margin:0;
  font-size:clamp(3rem,6vw,5.6rem);
  letter-spacing:-.045em;
  line-height:1.03;
  font-weight:760;
  color:var(--text);
}
.hero-subline{
  margin:26px 0 16px;
  max-width:760px;
  font-size:1.23rem;
  color:#45515d;
}
.hero-copy{
  margin:0 0 34px;
  max-width:720px;
  color:var(--muted);
  font-size:1.03rem;
}
.actions{display:flex;gap:14px;flex-wrap:wrap}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 23px;
  border-radius:10px;
  border:1px solid transparent;
  font-weight:750;
  text-decoration:none;
  transition:.2s ease;
  cursor:pointer;
}
.btn-primary{background:var(--blue);color:white}
.btn-primary:hover{background:var(--blue-dark);transform:translateY(-2px)}
.btn-secondary{background:white;color:var(--text);border-color:var(--line)}
.btn-secondary:hover{border-color:#bfc9d2;transform:translateY(-2px)}

.hero-panel{
  min-height:420px;
  border-radius:28px;
  background:
    linear-gradient(145deg,rgba(7,143,227,.10),rgba(7,143,227,.02)),
    #f8fbfd;
  border:1px solid var(--blue-line);
  padding:36px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:var(--shadow);
}
.hero-panel .mark{
  width:66px;
  height:8px;
  border-radius:999px;
  background:var(--blue);
}
.hero-panel strong{
  display:block;
  font-size:1.75rem;
  line-height:1.2;
  margin-bottom:12px;
}
.hero-panel p{margin:0;color:var(--muted)}

.section{padding:96px 0}
.section.alt{background:var(--surface)}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:40px;
  margin-bottom:44px;
}
.section-head h2{
  margin:0;
  max-width:780px;
  font-size:clamp(2.2rem,4vw,3.8rem);
  letter-spacing:-.035em;
  line-height:1.08;
}
.section-head p{margin:0;color:var(--muted);max-width:470px}

.service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.service-card{
  min-height:275px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  transition:.2s ease;
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--blue-line)}
.service-number{font-size:.78rem;font-weight:800;letter-spacing:.12em;color:var(--blue)}
.service-card h3{font-size:1.35rem;line-height:1.25;margin:38px 0 10px}
.service-card p{margin:0;color:var(--muted);font-size:.94rem}
.section-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:28px;
  color:var(--blue);
  font-weight:750;
  text-decoration:none;
}
.section-link:hover{text-decoration:underline}

.about-preview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
}
.about-box{
  min-height:410px;
  border-radius:28px;
  border:1px solid var(--blue-line);
  background:
    linear-gradient(145deg,rgba(7,143,227,.11),rgba(7,143,227,.015)),
    white;
  display:flex;
  align-items:flex-end;
  padding:34px;
}
.about-box span{
  background:white;
  border:1px solid var(--line);
  padding:16px 18px;
  border-radius:12px;
  font-weight:700;
}
.about-copy h2{
  margin:0 0 22px;
  font-size:clamp(2.2rem,4vw,3.8rem);
  letter-spacing:-.035em;
  line-height:1.08;
}
.about-copy p{color:var(--muted)}
.value-line{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid var(--line);
  font-weight:760;
  color:var(--text);
}

.cta{padding:76px 0;background:var(--blue-soft);border-top:1px solid var(--blue-line);border-bottom:1px solid var(--blue-line)}
.cta-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:35px;
}
.cta h2{
  margin:0;
  max-width:730px;
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.08;
  letter-spacing:-.03em;
}

.page-hero{
  padding:84px 0 66px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  border-bottom:1px solid var(--line);
}
.page-hero p{max-width:720px;color:var(--muted);font-size:1.08rem;margin-top:20px}

.long-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.long-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  background:white;
  min-height:220px;
}
.long-card h3{margin:0 0 10px;font-size:1.2rem}
.long-card p{margin:0;color:var(--muted)}
.placeholder{
  color:#8a939d !important;
  font-style:italic;
}

.content-wrap{max-width:860px}
.content-wrap h2{font-size:2rem;margin-top:44px}
.content-wrap p{color:var(--muted)}
.content-wrap .closing{
  margin-top:34px;
  padding:22px 0 0;
  border-top:1px solid var(--line);
  color:var(--text);
  font-weight:760;
  font-size:1.1rem;
}

.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:72px;
  align-items:start;
}
.contact-details{display:grid;gap:28px}
.contact-block{
  border-top:1px solid var(--line);
  padding-top:18px;
}
.contact-label{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--blue);
  font-weight:800;
  margin-bottom:8px;
}
.contact-block p,.contact-block a{margin:0;color:#3f4b56;text-decoration:none}
.contact-block a:hover{color:var(--blue)}
.location-card{
  border:1px solid var(--blue-line);
  background:var(--blue-soft);
  border-radius:24px;
  padding:34px;
}
.location-card h2{margin-top:0;font-size:2rem}
.location-card p{color:#4d5964}
.location-visual{
  height:220px;
  border-radius:16px;
  margin-top:24px;
  background:
    linear-gradient(135deg,rgba(7,143,227,.14),rgba(7,143,227,.03)),
    repeating-linear-gradient(45deg,#ffffff 0,#ffffff 18px,#f7fbfe 18px,#f7fbfe 36px);
  border:1px solid var(--blue-line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue-dark);
  font-weight:750;
  text-align:center;
  padding:24px;
}

.legal{max-width:860px}
.legal h2{margin-top:42px;font-size:1.8rem}
.legal p,.legal li{color:var(--muted)}
.notice{
  background:#fff8e8;
  border:1px solid #f2dd9c;
  border-radius:14px;
  padding:18px 20px;
}

.site-footer{
  background:#2d2d2d;
  color:#e8edf1;
  padding:48px 0;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-start;
}
.footer-brand{max-width:360px}
.footer-brand img{
  width:185px;
  background:white;
  border-radius:8px;
  padding:4px;
  margin-bottom:15px;
}
.footer-brand p{color:#b9c1c8;margin:0}
.footer-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:14px 30px;
}
.footer-links a{
  color:#e8edf1;
  text-decoration:none;
}
.footer-links a:hover{color:#7bc7f6}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:36px;
  padding-top:20px;
  font-size:.86rem;
  color:#aeb7bf;
}

@media(max-width:960px){
  .menu-btn{display:block}
  .nav{
    display:none;
    position:absolute;
    top:82px;
    left:0;
    right:0;
    background:white;
    padding:22px 20px;
    border-bottom:1px solid var(--line);
    flex-direction:column;
    align-items:flex-start;
  }
  .nav.open{display:flex}
  .hero-grid,.about-preview,.contact-grid{grid-template-columns:1fr}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .long-grid{grid-template-columns:repeat(2,1fr)}
  .section-head,.cta-inner,.footer-top{flex-direction:column;align-items:flex-start}
}
@media(max-width:640px){
  .container{width:min(calc(100% - 28px),var(--max))}
  .logo-link img{width:165px}
  .hero{padding:72px 0 66px}
  .hero h1,.page-hero h1{font-size:2.8rem}
  .service-grid,.long-grid{grid-template-columns:1fr}
  .section{padding:72px 0}
  .footer-links{grid-template-columns:1fr}
}

/* Requested refinements */
.hero h1{
  font-size:clamp(2.55rem,5vw,4.65rem);
}
.cta h2{
  font-size:clamp(1.75rem,3vw,2.75rem);
}
.contact-form{
  border:1px solid var(--line);
  border-radius:24px;
  padding:30px;
  background:white;
  box-shadow:var(--shadow);
}
.contact-form h2{
  margin-top:0;
  font-size:2rem;
  letter-spacing:-.025em;
}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.field{
  display:grid;
  gap:8px;
  margin-bottom:16px;
}
.field label{
  font-weight:700;
  font-size:.92rem;
}
.field input,
.field textarea{
  width:100%;
  border:1px solid #cfd6dd;
  border-radius:10px;
  padding:13px 14px;
  background:white;
  color:var(--text);
  outline:none;
}
.field input:focus,
.field textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(7,143,227,.08);
}
.field textarea{
  min-height:165px;
  resize:vertical;
}
.checkbox{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.86rem;
  color:var(--muted);
  margin:8px 0 18px;
}
.checkbox input{margin-top:4px}
.form-note{
  margin-top:14px;
  color:var(--muted);
  font-size:.82rem;
}
.demo-message{
  display:none;
  margin-top:16px;
  padding:12px 14px;
  border-radius:10px;
  background:var(--blue-soft);
  color:var(--blue-dark);
  border:1px solid var(--blue-line);
}
.demo-message.show{display:block}
@media(max-width:700px){
  .form-row{grid-template-columns:1fr}
}


/* v4: About page split layout */
.about-page-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:72px;
  align-items:start;
}
.about-page-copy h2{
  margin:0 0 22px;
  font-size:clamp(1.9rem,3vw,2.8rem);
  line-height:1.12;
  letter-spacing:-.025em;
}
.about-page-copy p{
  color:var(--muted);
  text-align:left;
}
.about-image-placeholder{
  min-height:520px;
  border-radius:26px;
  border:1px solid var(--blue-line);
  background:
    linear-gradient(145deg,rgba(7,143,227,.10),rgba(7,143,227,.02)),
    #f8fbfd;
  box-shadow:var(--shadow);
}

/* v4: Grouped service presentation */
.service-groups{
  display:grid;
  gap:56px;
}
.service-group{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:44px;
  padding-top:30px;
  border-top:1px solid var(--line);
}
.service-group:first-child{
  border-top:0;
  padding-top:0;
}
.service-group-title{
  position:sticky;
  top:112px;
  align-self:start;
}
.service-group-title .group-number{
  color:var(--blue);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.12em;
  margin-bottom:10px;
}
.service-group-title h2{
  margin:0;
  font-size:1.55rem;
  line-height:1.2;
  letter-spacing:-.02em;
}
.service-list{
  display:grid;
}
.service-row{
  display:grid;
  grid-template-columns:minmax(220px,.9fr) 1.4fr;
  gap:28px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
}
.service-row:first-child{
  padding-top:0;
}
.service-row h3{
  margin:0;
  font-size:1.05rem;
  line-height:1.35;
}
.service-row p{
  margin:0;
  color:var(--muted);
}
.service-closing{
  margin-top:10px;
  padding:28px 0 0;
  border-top:1px solid var(--line);
  max-width:800px;
}
.service-closing p{
  margin:0;
  color:var(--text);
  font-weight:700;
}

@media(max-width:900px){
  .about-page-grid,
  .service-group{
    grid-template-columns:1fr;
  }
  .about-image-placeholder{
    min-height:380px;
  }
  .service-group{
    gap:24px;
  }
  .service-group-title{
    position:static;
  }
  .service-row{
    grid-template-columns:1fr;
    gap:8px;
  }
}


/* v5: language switch + dark footer logo */
.header-actions{
  display:flex;
  align-items:center;
  gap:18px;
}
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:white;
}
.lang-switch a{
  min-width:38px;
  padding:6px 10px;
  border-radius:999px;
  text-align:center;
  text-decoration:none;
  font-size:.8rem;
  font-weight:800;
  color:var(--muted);
}
.lang-switch a.active{
  background:var(--blue);
  color:white;
}
.footer-brand img.footer-logo{
  width:210px;
  background:transparent;
  padding:0;
  border-radius:10px;
  overflow:hidden;
  display:block;
}
@media(max-width:960px){
  .header-actions{gap:10px}
  .lang-switch{order:-1}
}


/* v7: final footer alignment fix */
.site-footer{
  background:#2d2d2d;
}

.footer-brand{
  max-width:360px;
}

.footer-brand img,
.footer-brand img.footer-logo{
  width:230px;
  height:auto;
  display:block;
  margin:0 0 22px 0;
  padding:0;
  background:transparent;
  border-radius:8px;
  object-fit:contain;
}

.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-start;
}

@media(max-width:960px){
  .footer-top{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* v8: footer logo smaller */
.site-footer .footer-brand img.footer-logo{
  width:150px !important;
  max-width:150px !important;
  height:auto !important;
  display:block;
  margin:0 0 18px 0;
  padding:0;
  background:transparent;
  border-radius:8px;
}

@media(max-width:640px){
  .site-footer .footer-brand img.footer-logo{
    width:135px !important;
    max-width:135px !important;
  }
}


/* v9: Alster Tower image on homepage */
.hero-building-figure{
  margin:0;
  border-radius:28px;
  overflow:hidden;
  border:1px solid var(--blue-line);
  background:white;
  box-shadow:var(--shadow);
}

.hero-building-figure img{
  width:100%;
  height:520px;
  object-fit:cover;
  object-position:center 25%;
  display:block;
}

.hero-building-figure figcaption{
  padding:8px 12px 10px;
  font-size:.68rem;
  line-height:1.35;
  color:#7b858f;
  background:#fbfdff;
}

.hero-building-figure figcaption a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(123,133,143,.45);
  text-underline-offset:2px;
}

.hero-building-figure figcaption a:hover{
  color:var(--blue-dark);
}

@media(max-width:960px){
  .hero-building-figure img{
    height:440px;
    object-position:center 25%;
  }
}

@media(max-width:640px){
  .hero-building-figure img{
    height:360px;
    object-position:center 22%;
  }

  .hero-building-figure figcaption{
    font-size:.64rem;
  }
}


/* v12: requested layout refinements */
.about-page-grid{
  display:block;
  max-width:900px;
}
.about-page-copy{
  max-width:800px;
  margin:0 auto;
  text-align:left;
}
.about-page-copy h2{
  text-align:center;
}
.about-page-copy p{
  text-align:left;
}
.about-page-copy .closing{
  text-align:left;
}

.legal-hero h1{
  font-size:clamp(2.2rem,4vw,3.35rem);
}
.legal h2{
  font-size:1.42rem;
  margin-top:34px;
}
.legal-section{
  padding-top:72px;
}
.impressum-section{
  padding-top:42px;
}

.footer-links{
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(220px,1fr);
  gap:20px 46px;
  min-width:min(520px,100%);
}
.footer-link-column{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.footer-contact-links{
  text-align:left;
}

@media(max-width:640px){
  .footer-links{
    grid-template-columns:1fr;
    min-width:0;
  }
  .legal-hero h1{
    font-size:2.25rem;
  }
  .legal-section,
  .impressum-section{
    padding-top:46px;
  }
}


/* v13: functional contact form */
.hp-field{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.form-feedback{
  display:none;
  margin-top:16px;
  padding:12px 14px;
  border-radius:10px;
  font-size:.92rem;
}
.form-feedback.show{display:block}
.form-feedback.success{
  background:#eef9f1;
  border:1px solid #b9dfc2;
  color:#245f31;
}
.form-feedback.error{
  background:#fff3f3;
  border:1px solid #efc4c4;
  color:#8a2d2d;
}
