/*
Theme Name: Studt Digital Solutions
Theme URI: https://studt-digital.de
Author: Dominik Studt
Author URI: https://studt-digital.de
Description: Custom Theme für Studt Digital Solutions
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: studt-digital
*/

/* ===========================
   SELF-HOSTED FONTS (DSGVO-konform)
   Fonts liegen unter assets/fonts/
   Download: https://fonts.google.com/specimen/Inter → "Download family"
   Benötigte Dateien: inter-400.woff2, inter-500.woff2, inter-600.woff2, inter-700.woff2
=========================== */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --navy:      #1B2A5E;
  --navy-dark: #131f47;
  --lightblue: #B8D4F0;
  --white:     #FFFFFF;
  --offwhite:  #F5F7FA;
  --text:      #1A1A1A;
  --text-muted:#6B7280;
  --border:    #E5E7EB;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(27,42,94,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

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

ul {
  list-style: none;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===========================
   LAYOUT UTILITIES
=========================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--offwhite);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,42,94,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===========================
   HEADER / NAVIGATION
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img,
.nav-logo .custom-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--navy-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===========================
   HERO
=========================== */
.hero {
  padding: 160px 0 120px;
  background: linear-gradient(160deg, var(--navy) 0%, #243770 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,212,240,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(184,212,240,0.2);
  color: var(--lightblue);
  border: 1px solid rgba(184,212,240,0.35);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.hero .btn-primary:hover {
  background: var(--lightblue);
  color: var(--navy);
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.hero-tools {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-tool-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
}

/* ===========================
   SERVICES (LEISTUNGEN)
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--lightblue);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--offwhite);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===========================
   WHY (WARUM STUDT DIGITAL)
=========================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-content h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.why-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===========================
   ABOUT (ÜBER MICH)
=========================== */
.about-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(27,42,94,0.12);
  width: 100%;
}

.about-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.badge {
  background: var(--lightblue);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===========================
   PROJECTS (PROJEKTE)
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  color: var(--text-muted);
}

.project-placeholder {
  width: 64px;
  height: 64px;
  background: var(--offwhite);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.project-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card p {
  font-size: 0.9rem;
}

/* Kacheln mit echtem Inhalt (CPT) */
.project-card--live {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--offwhite);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card--live:hover .project-image img {
  transform: scale(1.04);
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-body h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 10px;
  color: var(--navy-dark);
}

.project-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===========================
   CONTACT (KONTAKT)
=========================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.contact-detail a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-detail a:hover {
  color: var(--navy-dark);
}

/* Klickbare Kontaktzeile als direktes <a>-Element */
a.contact-detail--link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

a.contact-detail--link:hover {
  color: var(--navy-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  pointer-events: none;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,94,0.08);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* ===========================
   PROJEKT EINZELANSICHT
=========================== */
.projekt-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s, gap 0.2s;
}

.projekt-back:hover {
  color: var(--navy);
  gap: 12px;
}

.projekt-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projekt-header {
  margin-bottom: 36px;
}

.projekt-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.projekt-thumbnail {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.projekt-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.projekt-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.projekt-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.projekt-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
.projekt-content p  { margin-bottom: 1.2rem; color: var(--text-muted); }
.projekt-content ul,
.projekt-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.projekt-content li { margin-bottom: 0.4rem; color: var(--text-muted); }
.projekt-content strong { color: var(--text); font-weight: 600; }
.projekt-content a  { color: var(--navy); text-decoration: underline; }

.projekt-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--offwhite);
  border-radius: 12px;
  text-align: center;
}

.projekt-cta p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ===========================
   SKYLINE SECTION
=========================== */
.skyline-section {
  position: relative;
  overflow: hidden;
  background: var(--offwhite);
  padding: 0;
}

.skyline-wrapper {
  position: relative;
  display: block;
  cursor: default;
}

.skyline-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.15;
  transition: opacity 0.4s ease;
  display: block;
}

.skyline-wrapper:hover img {
  opacity: 0.25;
}

.skyline-hover-text {
  position: absolute;
  bottom: 12px;
  right: 24px;
  opacity: 1;
}

.skyline-hover-text span {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 110px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; margin: 0 auto; aspect-ratio: 1/1; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
