@font-face {
    font-family: "Caveat";
    src: url("../fonts/caveat-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Caveat";
    src: url("../fonts/caveat-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #244a53;
    --muted: #5b7075;
    --cream: #fffaf6;
    --pink: #c94370;
    --pink-hover: #aa315b;
    --pink-soft: #fbe9ee;
    --teal: #4f8a91;
    --footer: #5e8f95;
    --blue: #e9f4f5;
    --mint: #eaf4ed;
    --peach: #fbf0e6;
    --lavender: #f1ecf7;
    --script: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;

    /* Aquarell-Flächen und unregelmäßige Bildränder als SVG-Data-URIs. */
    --wash-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='70'/%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3Cg filter='url(%23w)' fill='%23cfe7e7'%3E%3Cellipse cx='300' cy='200' rx='255' ry='160' opacity='.75'/%3E%3Cellipse cx='360' cy='160' rx='170' ry='110' opacity='.55'/%3E%3Cellipse cx='200' cy='260' rx='140' ry='80' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
    --wash-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='none'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.01 .03' numOctaves='4' seed='9'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='40'/%3E%3C/filter%3E%3Crect filter='url(%23w)' x='20' y='20' width='960' height='360' rx='30' fill='%23e3f0f1'/%3E%3C/svg%3E");
    --mask-blob: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='20'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' d='M70 40C140 8 270 6 335 38c48 24 55 92 52 160-3 82-22 150-92 175-75 24-185 18-240-17C14 330 10 258 14 190 18 118 25 62 70 40z'/%3E%3C/svg%3E");
    --mask-torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06' numOctaves='3' seed='2'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='14'/%3E%3C/filter%3E%3Crect filter='url(%23r)' x='-20' y='10' width='405' height='380' rx='14'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 5px;
}

.sprite {
    position: absolute;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: min(1160px, 90%);
    margin-inline: auto;
}

/* ---------- Doodles ---------- */

.doodle,
.doodle-heart,
.heading-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.doodle {
    position: absolute;
    pointer-events: none;
}

.doodle-heart {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.1em;
    vertical-align: -0.05em;
    color: var(--pink);
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 250, 246, 0.95);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-block: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1.1;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
}

.brand-text {
    font-size: 16px;
    font-weight: bold;
}

.brand strong {
    display: block;
    font-family: var(--script);
    font-size: 22px;
    font-weight: 500;
}

.navigation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding-block: 16px 8px;
}

.navigation .button {
    align-self: flex-start;
}

/* Ohne JavaScript bleibt die Navigation sichtbar. */
.js .navigation {
    display: none;
}

.js .navigation.is-open {
    display: flex;
}

.navigation > a:not(.button) {
    position: relative;
    padding-block: 4px;
    font-size: 14px;
    text-decoration: none;
}

.navigation > a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.navigation > a:not(.button):hover::after,
.navigation > a:not(.button):focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: block;
    border: 1px solid var(--ink);
    border-radius: 20px;
    background: transparent;
    padding: 6px 16px;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 24px;
    border: 1.5px solid var(--pink);
    border-radius: 30px;
    background: var(--pink);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(201, 67, 112, 0.22);
    transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
    background: var(--pink-hover);
}

.button-small {
    min-height: 44px;
    padding: 8px 22px;
}

.button-outline {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.button-outline:hover {
    background: var(--blue);
}

.button-light {
    border-color: #f1dcc4;
    background: #f6e6d3;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(36, 74, 83, 0.12);
}

.button-light:hover {
    background: #f1dcc4;
}

/* ---------- Typography ---------- */

h1,
h2,
.handwritten {
    font-family: var(--script);
    font-weight: 700;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(54px, 6.4vw, 86px);
    line-height: 1.02;
}

h1 span,
h2 span {
    color: var(--pink);
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 3.4vw, 42px);
    line-height: 1.15;
}

h3 {
    line-height: 1.4;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--teal);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.handwritten {
    font-size: 24px;
    line-height: 1.2;
}

.section {
    position: relative;
    padding-block: 48px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 700px;
    margin-bottom: 34px;
}

.section-heading p:last-child {
    margin: 0;
    color: var(--muted);
}

.heading-icon {
    width: 34px;
    height: 34px;
    margin-top: -4px;
    flex-shrink: 0;
    color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-block: 20px 48px;
}

.hero-copy {
    position: relative;
    padding-top: 30px;
}

.hero-description {
    margin: 0;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.5;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.doodle-heart-small {
    top: -6px;
    left: 30px;
    width: 26px;
    height: 26px;
    color: #e79ab2;
    transform: rotate(-14deg);
}

.doodle-paw-hero {
    display: none;
    bottom: -70px;
    left: -10px;
    width: 46px;
    height: 46px;
    color: #8cc3c9;
    transform: rotate(-20deg);
}

.hero-picture {
    position: relative;
    isolation: isolate;
}

.hero-picture::before {
    content: "";
    position: absolute;
    inset: -10% -25% -8% -12%;
    background: var(--wash-teal) center / 100% 100% no-repeat;
    z-index: -1;
}

.hero-photo {
    aspect-ratio: 1.05;
    width: 100%;
    -webkit-mask: var(--mask-blob) center / 100% 100% no-repeat;
    mask: var(--mask-blob) center / 100% 100% no-repeat;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 40%;
}

.doodle-heart-hero {
    top: 6px;
    right: 22%;
    width: 44px;
    height: 44px;
    color: #6aa9b0;
    transform: rotate(12deg);
}

.hero-note {
    margin: 12px 0 0;
    font-size: 26px;
    line-height: 1.05;
    text-align: center;
    transform: rotate(-3deg);
}

.hero-note br {
    display: none;
}

.hero-note .doodle-heart {
    display: none;
    width: 34px;
    height: 34px;
    margin: 8px 18px 0 auto;
    color: var(--ink);
}

/* ---------- Leistungen ---------- */

.services {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.service {
    padding: 22px 12px;
    border-radius: 20px 24px 18px 26px;
    text-align: center;
    box-shadow: 0 2px 0 rgba(36, 74, 83, 0.04);
    transition: transform 180ms ease;
}

.blue { background: var(--blue); }
.pink { background: var(--pink-soft); }
.mint { background: var(--mint); }
.peach { background: var(--peach); }
.lavender { background: var(--lavender); }

.service-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    font-size: 40px;
}

.service-icon::before {
    content: "";
    position: absolute;
    inset: 6px 0 4px 8px;
    border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
    opacity: 0.75;
    z-index: 0;
}

.service-icon .icon {
    position: relative;
    stroke-width: 1.3;
}

.splash-blue::before { background: #c6e3e6; }
.splash-pink::before { background: #f6c9d6; }
.splash-mint::before { background: #c9e4d1; }
.splash-peach::before { background: #f6d5b5; }
.splash-lavender::before { background: #dcd0ee; }

.service h3 {
    margin: 12px 0 6px;
    font-size: 16px;
}

.service p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- Über mich ---------- */

.about {
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream), #fcf4ee 30%, #fcf4ee 70%, var(--cream));
}

.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

.portrait-photo {
    /* Das Foto läuft am Handy über die ganze Breite, ab Tablet bis an den linken Fensterrand. */
    margin-inline: -5vw;
    aspect-ratio: 1.3;
    -webkit-mask: var(--mask-torn) center / 100% 100% no-repeat;
    mask: var(--mask-torn) center / 100% 100% no-repeat;
}

.portrait-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 40%;
}

.about-copy .section-heading {
    margin-bottom: 18px;
}

.about-copy > p {
    max-width: 480px;
    color: var(--muted);
}

.about-copy .quote {
    margin: 24px 0;
    color: var(--ink);
}

.doodle-heart-about {
    top: -10px;
    right: 0;
    width: 70px;
    height: 70px;
    color: #f0b6c7;
    transform: rotate(14deg);
}

.doodle-paw-about {
    bottom: 0;
    right: 4%;
    width: 42px;
    height: 42px;
    color: #8cc3c9;
    transform: rotate(18deg);
}

/* ---------- Vorher / Nachher ---------- */

.transformations {
    padding: 28px 18px;
    background: var(--wash-band) center / 100% 100% no-repeat;
}

.comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

figure {
    margin: 0;
}

.comparison-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 40%;
    background: #f3e7df;
}

.comparison figure:first-child .comparison-photo {
    border-radius: 10px 0 0 10px;
}

.comparison figure:last-child .comparison-photo {
    border-radius: 0 10px 10px 0;
}

figcaption {
    margin-top: 6px;
    font-family: var(--script);
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

/* ---------- Kontakt ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.contact-info .section-heading {
    margin-bottom: 10px;
}

.contact-intro {
    max-width: 520px;
    margin: 0 0 24px;
    color: var(--muted);
}

.contact-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px 44px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.5;
}

.contact-list .icon {
    margin-top: 1px;
    font-size: 17px;
    color: var(--ink);
}

.contact-list a {
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.contact-cta .handwritten {
    margin: 30px 0 0 10px;
    font-size: 23px;
    transform: rotate(-6deg);
}

.map-card {
    position: relative;
    display: grid;
    max-width: 520px;
    place-items: end center;
    aspect-ratio: 1.45;
    padding: 22px;
    border-radius: 24px 30px 22px 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(36, 74, 83, 0.1);
}

.map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-credit {
    position: absolute;
    top: 8px;
    left: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 250, 246, 0.85);
    font-size: 10px;
    text-decoration: none;
}

.map-credit:hover {
    text-decoration: underline;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    /* Die Pin-Spitze sitzt genau auf der Bildmitte (= Adresse). */
    transform: translate(-50%, -90%);
    fill: var(--pink);
    stroke: white;
    stroke-width: 1.2;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

.map-bubble {
    position: absolute;
    top: 9%;
    right: 9%;
    padding: 10px 16px;
    border-radius: 50% 50% 50% 46%;
    background: white;
    font-size: 19px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(36, 74, 83, 0.1);
    transform: rotate(4deg);
}

.map-card .button {
    position: relative;
}

/* ---------- Footer ---------- */

.footer {
    position: relative;
    margin-top: 60px;
    padding-block: 20px 26px;
    background: var(--footer);
    color: white;
}

.footer-wave {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 40px;
    margin-bottom: -1px;
    fill: var(--footer);
}

.footer-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    text-align: center;
}

.footer .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cream);
}

.footer .brand-text {
    font-size: 16px;
    font-weight: normal;
}

.footer .brand strong {
    font-size: 23px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 26px;
    font-size: 13px;
}

.footer-nav a {
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-paw {
    width: 34px;
    height: 34px;
    fill: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
    flex-basis: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 12px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 4px !important;
}

.footer-legal a {
    opacity: 0.9;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
    opacity: 1;
    font-weight: bold;
}

/* ---------- Impressum / Datenschutz ---------- */

.legal {
    padding-block: 40px 24px;
}

.legal-inner {
    max-width: 780px;
}

.legal h1 {
    font-size: clamp(46px, 5.5vw, 64px);
    margin-bottom: 10px;
}

.legal h2 {
    margin: 40px 0 10px;
    font-size: clamp(26px, 2.6vw, 32px);
}

.legal p,
.legal li {
    color: var(--muted);
}

.legal ul {
    padding-left: 22px;
}

.legal li + li {
    margin-top: 4px;
}

.legal a:not(.button) {
    color: var(--pink);
}

.legal-lead {
    font-size: 16px;
}

.legal-data {
    padding: 8px 18px;
    border-radius: 20px 24px 18px 26px;
    background: var(--blue);
}

.legal-data > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 20px;
    padding-block: 12px;
    border-bottom: 1px solid #d2e4e6;
}

.legal-data > div:last-child {
    border-bottom: 0;
}

.legal-data dt {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 2px;
}

.legal-data dd {
    margin: 0;
    color: var(--ink);
}

.legal-date {
    margin-top: 36px;
    font-size: 13px;
}

.legal-back {
    margin-top: 32px;
}

/* ---------- Responsive (mobile first) ----------
   Die Grundregeln oben beschreiben das Handy.
   Größere Bildschirme werden hier schrittweise ergänzt. */

/* Bewegung beim Überfahren nur bei Geräten mit Maus. */
@media (hover: hover) {
    .button:hover {
        transform: translateY(-2px);
    }

    .service:hover {
        transform: translateY(-3px);
    }
}

@media (min-width: 361px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 421px) {
    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .brand-text {
        font-size: 19px;
    }

    .brand strong {
        font-size: 27px;
    }
}

/* Tablet */
@media (min-width: 761px) {
    .section {
        padding-block: 56px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        padding-block: 36px 64px;
    }

    .hero-picture {
        padding: 20px 0 20px 30px;
    }

    .hero-photo {
        width: min(80%, 520px);
    }

    /* Spruch bleibt unter dem Foto, neben dem Foto wäre zu wenig Platz. */
    .hero-note {
        width: min(80%, 520px);
    }

    .doodle-paw-hero {
        display: block;
    }

    .services {
        gap: 20px;
    }

    .service {
        padding: 30px 20px 26px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 56px;
    }

    .portrait-photo {
        margin-inline: calc((100vw - min(1160px, 90vw)) / -2) 0;
    }

    .transformations {
        padding: 44px 40px 48px;
    }

    .comparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .contact-intro {
        margin-left: 48px;
    }

    .contact-body {
        margin-left: 48px;
    }

    .footer-inner {
        flex-direction: row;
        text-align: left;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .legal-data {
        padding-inline: 26px;
    }

    .legal-data > div {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

/* Desktop */
@media (min-width: 1081px) {
    .header-inner {
        flex-wrap: nowrap;
        gap: 24px;
        min-height: 92px;
        padding-block: 0;
    }

    .menu-toggle {
        display: none;
    }

    .navigation,
    .js .navigation {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        width: auto;
        padding-block: 0;
    }

    .navigation .button {
        align-self: auto;
    }

    .services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .comparison-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }

    .map-card {
        max-width: none;
    }
}

/* Breiter Desktop: Spruch rechts neben dem Foto. Das Foto lässt dafür
   immer 130px frei, damit der Text nie ins Bild ragt. */
@media (min-width: 1200px) {
    .hero-photo {
        width: min(100% - 130px, 520px);
    }

    .hero-note {
        position: absolute;
        top: 16%;
        right: 0;
        width: auto;
        margin: 0;
        font-size: 30px;
        text-align: right;
        transform: rotate(-8deg);
    }

    .hero-note br {
        display: inline;
    }

    .hero-note .doodle-heart {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .service,
    .navigation > a::after {
        transition: none;
    }

    .button:hover,
    .service:hover {
        transform: none;
    }
}
