/*
Theme Name: IT-Rettung
Theme URI: https://www.it-rettung.at
Author: IT-Rettung Manuel GmbH
Description: Helles Theme in Weiß und Rot für IT-Rettung (Handy-Reparatur, Datenrettung). Farben, Texte und Bilder sind unter Design > Anpassen änderbar.
Version: 1.2.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: it-rettung
*/

/* Farben: --red, --red-dark, --red-soft, --red-glow und --band kommen aus dem Customizer. */
:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --red-soft: rgba(227,6,19,.10);
  --red-glow: rgba(227,6,19,.28);
  --band: #141416;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20,20,30,.07);
}
body, body.scheme-light {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #17171a;
  --muted: #5b5b63;
  --line: #e5e5ea;
  --header-bg: rgba(255,255,255,.92);
  --hero-1: #ffffff;
  --hero-2: #ffeff0;
}
body.scheme-dark {
  --bg: #0e0e10;
  --card: #18181b;
  --ink: #f2f2f2;
  --muted: #a9a9ad;
  --line: #2a2a2e;
  --header-bg: rgba(14,14,16,.92);
  --hero-1: #151518;
  --hero-2: #1c0b0e;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--red);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: .02em; color: var(--ink); margin-right: auto; }
.logo span { color: var(--red); }
.logo:hover { color: var(--ink); }
.custom-logo-link { margin-right: auto; display: flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.main-nav a { display: block; padding: .5rem .9rem; color: var(--ink); font-weight: 600; border-radius: 999px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--red-soft); color: var(--red); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-call {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: #fff; font-weight: 700; padding: .55rem 1.1rem;
  border-radius: 999px; box-shadow: 0 6px 16px var(--red-glow); transition: background .2s, transform .2s;
}
.header-call:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.header-call .lbl { display: none; }
.nav-toggle { display: none; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: .5rem .75rem; font-size: 1.2rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; padding: .9rem 1.7rem; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; border: 2px solid var(--red);
  box-shadow: 0 8px 20px var(--red-glow);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.light { background: #fff; color: var(--red); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn.light:hover { background: #fff; color: var(--red-dark); border-color: #fff; }

/* Hero */
.hero {
  padding: clamp(2.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(700px 360px at 90% 0%, var(--red-soft), transparent 70%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero h1 span { color: var(--red); white-space: nowrap; }
.hero-text p { font-size: 1.25rem; color: var(--muted); max-width: 34rem; margin: 0 0 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.usps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.usps li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.usps svg { flex: none; color: #fff; background: var(--red); border-radius: 50%; padding: 4px; width: 24px; height: 24px; }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: min(340px, 100%); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
.hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section-title { text-align: center; margin-bottom: 2.2rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin: .8rem auto 0; border-radius: 2px; }
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 14px 34px var(--red-soft); }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--muted); }
.service { text-align: center; }
.icon-wrap {
  width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 24px;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.icon-wrap .icon { width: 44px; height: 44px; }
.icon-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Dunkles Band: Weitere Leistungen */
.band { background: var(--band); color: #fff; }
.band .section-title { color: #fff; }
.band .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.band .card:hover { border-color: var(--red); box-shadow: none; }
.band .card h3 { color: #fff; }
.band .card p { color: #c9c9cf; }
.card.small { padding: 1.4rem 1.6rem; border-left: 4px solid var(--red); text-align: left; }
a.card { display: block; color: inherit; }
a.card h3 span { color: var(--red); }

/* Anruf-Banner */
.cta { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; padding: clamp(2rem, 6vw, 3rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; opacity: .92; font-size: 1.1rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-grid h3 { color: var(--red); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.contact-grid h3.mt { margin-top: 1.2rem; }
.contact-grid p { margin: 0 0 .5rem; color: var(--ink); }
.route { font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; color: var(--muted); }

/* Kontaktformular */
.form-section { padding-top: 0; }
.form-card { max-width: 860px; margin-inline: auto; }
.form-card:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; margin-bottom: .3rem; }
.form-intro { margin: 0 0 .5rem; }
.itr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.itr-form .full { grid-column: 1 / -1; }
.itr-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.itr-form input[type=text], .itr-form input[type=email], .itr-form input[type=tel], .itr-form select, .itr-form textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.itr-form input:focus, .itr-form select:focus, .itr-form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.itr-form textarea { min-height: 140px; resize: vertical; }
.itr-form .consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.itr-form .consent input { margin-top: .3rem; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.itr-form button.btn { cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .9rem 1.1rem; border-radius: 12px; margin: 1rem 0 0; font-weight: 600; }
.form-msg.ok { background: #e8f7ee; color: #146c2e; border: 1px solid #b6e3c4; }
.form-msg.err { background: var(--red-soft); color: var(--red-dark); border: 1px solid var(--red-glow); }

/* Seiten */
.page-hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); border-bottom: 3px solid var(--red); }
.page-hero h1 { margin: 0; }
.entry-content { padding: 2.5rem 0 4rem; max-width: 860px; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h2::before { content: ""; display: inline-block; width: 6px; height: 1em; background: var(--red); margin-right: .6rem; vertical-align: -.12em; border-radius: 2px; }
.entry-content p, .entry-content li { color: var(--ink); opacity: .88; }
.entry-content ul { padding-left: 1.2rem; }
.itr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.4rem 0; }
.itr-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.itr-card h3 { margin-top: 0; }
.itr-prices { list-style: none; padding: 0 !important; margin: 1rem 0; display: grid; gap: .8rem; }
.itr-prices li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; box-shadow: var(--shadow); }
.itr-prices strong { font-size: 1.3rem; color: var(--red); }
.itr-prices small { flex-basis: 100%; color: var(--muted); }

/* Footer */
.site-footer { background: var(--band); color: #b9b9c0; padding: 2.4rem 0; font-size: .95rem; border-top: 4px solid var(--red); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; }
.footer-brand { color: #fff; font-size: 1.2rem; letter-spacing: .02em; }
.footer-brand span { color: var(--red); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-art { width: 200px; }
  .hero-img { max-height: 260px; }
  .grid-3, .contact-grid, .itr-grid-2, .itr-form { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .header-call .num { display: none; }
  .header-call .lbl { display: inline; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--card); border-bottom: 2px solid var(--red); padding: .6rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .logo { font-size: 1.3rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
